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

Implementing Qt Gui on already running c++ console app

I have a running ATM console app and I want to modify it so that it has a GUI, using the Qt libraries. I am trying to implement it without changing much of the code; rather, I want to call a widget where I was using cout or cin. But the problem is…
0
votes
0 answers

QTableView does not retain changes or update after adding records

I am constructing a GUI which displays the contents of a SQL database table and which should allow addition and modification of records through the GUI, using the base PyQt4 classes QTableView and QSqlTableModel. I am having problems with editing…
Grav
  • 347
  • 1
  • 2
  • 15
0
votes
1 answer

Qt Stylesheets and the "one argument" issue

I usually find a workaround for this, however it is getting on my nerves lately and I cannot find any information regarding it anywhere on the internet. Right, I want to change the property of a progress bar I have in Qt and have set the initial…
Joe Carr
  • 445
  • 1
  • 10
  • 23
0
votes
1 answer

How to set QInputDialog as modal

I'm trying to use dialogues from QtGui to get some input from user. For QFileDialog it works as I expected, but when I use QInputDialog, the dialogue just pops up and continue with the code execution, without waiting for the user input. Here is a…
Tomas
  • 3
  • 2
0
votes
0 answers

some parts of Qrect missing

I'm trying to move a circle(my class inherits QGraphicsItem) by using QTimer in keyPressEvent function. here is my class: class Shape :public QGraphicsObject { Q_OBJECT public: Shape(); QRectF boundingRect() const; void paint(QPainter…
0
votes
1 answer

How can I use replacedlg.ui in mainwindow.cpp?

I have written a project which includes a mainwindow and a replacedlg.ui. I want to use replacedlg.ui in mainwindow.cpp. I'd like to write things like ui->button in mainwindow.cpp, but I can't. Who can help me make this work? The whole project is…
konalo
  • 15
  • 1
  • 4
0
votes
1 answer

Qt Hovering over a button and triggering a function?

What is the proper way of triggering a function if the mouse cursor hovers over a QButton? To be more precise I have a label called statusLabel which should show message whenever I hover my mouse cursor over a button and should revert back to empty…
Joe Carr
  • 445
  • 1
  • 10
  • 23
0
votes
2 answers

Qt GUI animations?

A bit of a peculiar question but I recently discovered that there is a way to make animations for Qt GUIs. I really want to find a way to have my main window expand into a larger one, but rather instead of having it instantly resized(which is rather…
Joe Carr
  • 445
  • 1
  • 10
  • 23
0
votes
1 answer

Add QWidget or other QWidget derived controls into QWindow

QtGUI and QtWidgets have been separated in Qt5. How can I add QWidget or other QWidget derived controls into QWindow?
0
votes
2 answers

Is it possible to embed a mayavi plot inside tkinter?

The below code dumps two screens, one for Tkinter and second for mayavi. How to embed mayavi inside Tkinter. Is it even possible? If not, what are the alternatives for building a GUI which has mayavi plots embeded inside a frame/canvas? from tkinter…
0
votes
1 answer

How to properly close a QWidget-window in an API with PythonQt

i'm working with Python 2.7 in the API of a visualization-program. In its 2016-version i created a GUI with PySide and it was working guite good. Now in their new 2017-version they changed from PySide to PythonQt, so my imports and a few commands…
JFT
  • 1
  • 1
0
votes
2 answers

Python automate key press of a QtGUI

I have a python script with the section below: for index in range(1,10): os.system('./test') os.system('xdotool key Return') What I want to do is to run the executable ./test, which brings up a QtGUI. In this GUI, a key press prompt buton…
user1431515
  • 185
  • 1
  • 10
0
votes
2 answers

Qt QWidget multiple instances

We are multiple people working on one Qt app. I for one am implementing a library, which will be instanciated in multiple other parts of the app. This library has a display class+form along with it. Until now I had simply created one single instance…
C. THIN
  • 147
  • 3
  • 11
0
votes
1 answer

Qt creator multiple definition within build folder

I am getting a weird error message with Qt creator which makes no sense why it is occuring at all.. I am at the moment programming an ai player for a ludo simulator, which has been written as a QT gui. I've creates a C++ class named…
Vato
  • 37
  • 1
  • 8
0
votes
1 answer

How to assign the horizontal gradient to QLineEdit background

The code creates a QLineEdit with the background gradient running from top to bottom. How to make the gradient to go from side to side (essentially turn the Vertical to Horizontal gradient used as background)? line = QtGui.QLineEdit() …
alphanumeric
  • 17,967
  • 64
  • 244
  • 392