Questions tagged [qtgui]

QtGui module extends QtCore with GUI functionality. It has collection of classes useful for creating Qt based GUI applications

Prior to , the Qt GUI module was the monolithic container for all things relating to graphical user interfaces in Qt, and included the Qt widget set, the item views, the graphics view framework and also printing. Starting Qt 5, these classes have been moved to the Qt Widgets module. Printing has been moved to the Qt Print Support module. Please note that these modules can be excluded from a Qt installation.

If you use qmake to build your projects, Qt Gui is included by default.

The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.

539 questions
0
votes
1 answer

Click button cause multiple function calls

I develop a python program. The following code is my program. The problem is when I click self.ui.Restart_Btn which call self.restartClicked() method and I click self.ui.B11, it call the method self.boardClicked() twice (which it should call only…
Pandarian Ld
  • 727
  • 3
  • 13
  • 25
0
votes
1 answer

QT Signal / Slot

I've got a question about signals and slots. In my app, I want to connect a signal from one object to a textEdit in a dialog window. My signal emits a QString; if I violate encapsulation (by making the UI public instead of private) and connect the…
Azraith Sherkhan
  • 131
  • 2
  • 11
0
votes
1 answer

QColor hsl hue precision

In the code presented below the hsl hue component of the color has a diffrent value than expected. For: r:255 g:168 b:177 it gives a hsl hue of 353 but on other web tools it yields 354 QColor rgb(c); QColor hsl = rgb.toHsl(); QColor hsv =…
SiWM
  • 90
  • 1
  • 9
0
votes
0 answers

How to enable resizing of a window in Qt

I'm new to Qt and I'm trying to figure out a way to auto-resize in Qt. The goal is for the user to be able to drag the window to make it bigger and everything resizes to the size of the window. Does anyone have any tips?
user3878223
  • 441
  • 3
  • 7
  • 15
0
votes
1 answer

Communication between multiple dialogs in Qt, using signals and slots or references

Im developing a Qt GUI application, with multiple QDialog's open at any given time. These dialogs need to communicate and notify with each other when special data is received on a separate network thread. Usually a dialog will hold a reference to at…
Daniel Mac
  • 400
  • 2
  • 14
0
votes
1 answer

Python: Convert String to Object Name

This may be a very simple question, but how can I use a string for the name of a class/object declaration? I'm working with PySide, and I have code that will make a text input for every entry in an array. i=0 d = {} for name in mtlName: i = i+1 …
0
votes
1 answer

QT GUI Horizontal Slider setValue with QElapsedTimer

I have a GUI Button that calls a shell script to start recording a video. In addition I want a slider to show progress of recording (maximum recording time is 30 seconds). I build the following function: coid…
Jonas Zimmer
  • 161
  • 2
  • 15
0
votes
1 answer

Setting the size of an SVG icon in a table cell

I'd like to increase the size of an SVG icon that's displayed inside of a PySide/Qt table cell icon = QtGui.QIcon('icon.svg') entry = QtGui.QTableWidgetItem() entry.setIcon(icon) entry.setTextAlignment(QtCore.Qt.AlignHCenter |…
Saar Drimer
  • 1,171
  • 2
  • 11
  • 24
0
votes
1 answer

Remove 'selected' highlighting of Qt/PySide widget

I'm using a stylesheet to customise the look of my Qt/Pyside buttons. When I open the application, the first button is 'highlighted' with a coloured overlay (it moves through the GUI elements when I use the arrow keys). I want to remove this…
Saar Drimer
  • 1,171
  • 2
  • 11
  • 24
0
votes
0 answers

Changing the width of a scrollbar in a Qt/PySide text area element

I'm writing a Qt/Pyside interface for a touchscreen. In a QTextEdit element, I'd like to increase the width of the vertical scrollbar. I couldn't find an obvious way of doing this; any suggestions?
Saar Drimer
  • 1,171
  • 2
  • 11
  • 24
0
votes
1 answer

Change my Qdialog to QMainWindow

Building off of some random example I hacked out this beautiful window. I regret using a QDialog example rather than a QMainWindow. I like the look of the QMainWindow and its features. Now I cannot make the conversion (sheer ignorance). The code is…
tempneff
  • 97
  • 2
  • 10
0
votes
1 answer

Binding Variable PyQt Radio Buttons

I am using PyQt4 and want to set up a list of radio buttons that set a variable value dependent on the selection. Obviously I can do it with a ton of IF statements (10 radio buttons) but I figured there must be an elegant way to do it. To clarify…
tempneff
  • 97
  • 2
  • 10
0
votes
2 answers

error for compiling qt gui with cmake along with promoted widget

I have a qt GUI project based on ROS(catkin), it is my cmake cmake_minimum_required(VERSION 2.8.0) project(jir_seg) find_package(catkin REQUIRED COMPONENTS qt_build…
Vahid
  • 76
  • 6
0
votes
1 answer

get qtreewidgetitemiterator values

I am able to display data in a qtreewidget form. While reading values ( and after googling ), I find qTreeWidgetItemIterator as a way to iterate through all the items. iterator = QTreeWidgetItemIterator(self.light_write, QTreeWidgetItemIterator.All)…
0
votes
1 answer

How to change the selected row background color in Pyside?

How do I change the background color of the 'selected' row in a PySide table widget from the default color? (Preferable the style remains the same, just the color scheme changes.) Perhaps not possible on Linux due to…
Saar Drimer
  • 1,171
  • 2
  • 11
  • 24