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
2
votes
0 answers

Qt5 - Simple PDF-Viewer

In my application I have a toolbar with different buttons (load a file, print, help/about etc). With the button Help/About I want to show a .pdf-File, which is the manual of my application. Is there simple way to show a pdf in Qt?
erniberni
  • 313
  • 5
  • 17
2
votes
0 answers

modified-Flag for QAbstractSpinBox (QDoubleSpinBox, QSpinBox)

In QLineEdit there is an property modified which is set by QT, when the user changes the text of the widget. Is there something like this for an QAbstractSpinBox? When I'm trying to implement it on my own (with a derived class from QDoubleSpinBox) I…
D. Walz
  • 75
  • 7
2
votes
1 answer

QT designer background image issue

I am trying to insert an background image to central widget. My way: Right click on 'centralwidget' -> Change styleSheet -> "background-image: url(:/Resources/bg4.jpg);" BUT it is applied on each children of central widget. What the solution of this…
Matan Marciano
  • 333
  • 4
  • 13
2
votes
1 answer

Is there a way to show tooltip on disabled QWidget

I have a Qt form, where I have a button and menu. For various reasons I can disable certain elements, e.g button or some actions in the menu. Is there a way I could show a tooltip or when the mouse is hovered over the disabled button or menu item…
Serge
  • 1,027
  • 14
  • 21
2
votes
2 answers

How to customize text on Qpushbutton using QPalette?

How to set font, size and color for the Text of QPushButton in Qt5.6.1 using QPalette? As I am curious to know how we can set these properties without using QStyleSheet in Qt. Also how we can set hex code of color in QT. Please suggest any way to do…
Avi
  • 31
  • 2
  • 7
2
votes
1 answer

Python QtGui Create drop down list with buttons

I have to create a drop down list in QtGui, and I need the option to click on the items. I tried to use- QtGui.QComboBox(), but the items opened like comboBox- the selected item appear in the middle of the list and when the windows is small- I can't…
2
votes
1 answer

Why does a pyplot window behave differently when it is generated from a stand-alone function vs. a function called from an event handler?

When I run my setup_plot and dataq functions on their own the pyplot window behaves as expected, i.e. after the run finishes the buttons (pan/zoom etc) in the navigation toolbar are active. However, when I import the functions and call them from a…
Drew
  • 29
  • 7
2
votes
0 answers

Plotting sin wave with amplitude,frequency and phase angle

I was trying to make sin wave of the type f(x) = A*sin(2*pi*f*x + phi) Where A is amplitude, f is frequency and phi is phase angle. I know to plot simple sin curve like this : def plot(self): Amplitude = 1.5 Frequency = 0.5 Phase =…
mat7
  • 297
  • 3
  • 11
2
votes
2 answers

Qt Child Window Placement

Is there a way to specify a child's initial window position in Qt? I have an application that runs on Linux and Windows and it looks like the default behavior of Qt lets the Window Manager determine the placement of the child windows. On Windows,…
KannoN
  • 362
  • 3
  • 13
2
votes
3 answers

Change radio button text color in Qt

I have tried stylesheet, html format and palette to change the color of radio button to white but they did not work. is there a way to change it ? in the documantation of QRadioButton there is no function for text color.
irukeru
  • 509
  • 1
  • 10
  • 26
2
votes
1 answer

PyQt5 failing import of QtGui, QtCore and so on

[OS] - Windows 7 64bit [Version] - Python 3.4 - PyQt5.4.1 import sys from PyQt5.QtWidgets import QtGui, QtCore I cannot import QtGui, QtCore in QtWidgets. I have qtgui.pyd and qtcore.pyd, but I can't import them... Besides, I have QApplication but…
Mingyu Jeon
  • 1,755
  • 5
  • 23
  • 40
2
votes
1 answer

Import error with PySide inside IDA Pro

I have a weird error inside IDA-Pro. I've installed PySide with pip, as recommended in the official documentation. The following command runs fine in a terminal: C:\>python Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on…
Sebastien Damaye
  • 385
  • 2
  • 15
2
votes
1 answer

Change last line in QTextBrowser

I have a QTextBrowser that displays lines of QString and an Int. The messages looks something like this: Message a counter 1 Message a counter 2 Message a counter 3 Message b counter 1 Instead of always appending a new line for each incrementation…
testus
  • 183
  • 2
  • 21
2
votes
1 answer

How to set the column text format of QTableWidget?

I want to show some data in table form. I took QTableWidget for it having multiple columns. One column of it will contain time(hh:mm format). I also want user to edit any item of table but with corresponding format. I was able to add data in…
Patrick
  • 2,464
  • 3
  • 30
  • 47
2
votes
1 answer

How to change text format of QDoubleSpinbox?

I want to enter temperature in my dialog in this format 12°15° For this i took QDoubleSpinBox widget but wasn't able to set its text like above. I tried following: degree_sign= u'\N{DEGREE SIGN}' temperature =…
Patrick
  • 2,464
  • 3
  • 30
  • 47