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

Am I correctly importing the pyqt module library? Execution returns error "module called qdialog is not found"

I tried to run this code and it says a module called qdialog is not found. import sys # We need sys so that we can pass argv to QApplication import commentAnalyzer import design from PyQt5 import QtGui from PyQt5.QtCore import * from PyQt5.QtGui…
NOORDEEN M
  • 31
  • 1
  • 2
-1
votes
1 answer

Windows property "SIZE ON DISK" How to get this size by qt C++

I have a question on window folder property. When I'm checking property it's shows two size that is size and disk on size. So whenever I'm using qfileinfo it's show only size of folder. But i need "Size on disk". So what's is the method to get size…
-1
votes
1 answer

PyQt connecting signal between sub class and parent class

I want create a simple button to trigger some task. I was using PyQt designer to built GUI and trying to follow the advice that do not edit the UI module directly but put my customized code in a separate module then inherit all GUI aspects. This is…
Anthony
  • 43
  • 4
-1
votes
1 answer

No output for OpenGL

I am a newbie in QT and working with its openGL in the Ubuntu Platform I have created a template as in : My objective : On clicking of the "Compute" button, two things are supposed to happen : A text will be printed in the text box A line will be…
Chintu
  • 9
  • 2
-1
votes
1 answer

Read the input and print factorial in Qt GUI Application using C++

Using QTCreator, I created the design of a GUI Application. I want to read the input entered by the user from lineEdit and when pushButton is clicked, it should print the factorial of that entered number on the same page. I've read some tutorials…
Aiswarya
  • 3
  • 1
-1
votes
2 answers

Image on a button not working properly in QT

I believe that I am doing something very wrong with my image buttons. I want to do something as simple as making them change its image whenever I hover over the button or by pressing it. Stylesheets are a bit ambiguous at the moment for me. Here is…
Joe Carr
  • 445
  • 1
  • 10
  • 23
-1
votes
1 answer

QT program stalls even when using QThread

I have a program that is meant to find a certain amount of numbers with odds/evens. I keep track of this and display in in my GUI from a worker thread. This works, but while it is working the program freezes. The program is still calculating, but it…
Nicholas Johnson
  • 1,012
  • 2
  • 12
  • 35
-1
votes
2 answers

Qt: different GUI on different machines

I'm developing a Qt GUI application on Debian. It's run well on my machine (development environment) but on other environments (ex: testing, ...) the GUI is not correct as on my development environment. This is the two example screenshot: Can you…
aviit
  • 1,957
  • 1
  • 27
  • 50
-1
votes
2 answers

How to access the GUI output?

I'm developing one test bench which runs multiple tests via python gui and prints the output as below. A Passed B Passed C Passed D Passed E Passed Button from gui should be changed to 'Passed' only when A,B,C,D,E all are Passed. If any of these…
tryPy
  • 71
  • 1
  • 11
-1
votes
1 answer

Simulate Mouse Functionality in Qt

How to simulate entire mouse functionality using any 5 keys in keyboard? first four keys for mouse cursor movement. last key for generate left click event. cursor movement is properly working. But left click is not working for spin boxes and combo…
Nagur Basha Shaik
  • 187
  • 1
  • 1
  • 7
-1
votes
1 answer

Signals in Qt waitforbyteswritten() function

I'm having a GUI interface done with Qt containing a button with an event handler function. When I click the button , the event handler is fired and inside it I create a new process and taking into account that this process can require either no…
-1
votes
2 answers

Does this Qt code leak memory?

I try to learn more about programming by studying open source using UML. The code I have found is in the stage between Qt 3 and Qt 4. The project is not that active so I ask this question here. Maybe I should add that the program using this code do…
Jim G
  • 43
  • 1
-1
votes
1 answer

How to read unicode from a file and display the data in a QTextEdit?

I want to read unicode from file and display the corresponding data in a QTextEdit.Please give me some suggestions.
QtUser
  • 185
  • 2
  • 2
  • 12
-1
votes
1 answer

Segmentation fault

I am trying to build MainWindow with some toolbars and menus. So in my mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include class QAction; class QMenu; class QToolBar; class QStatusBar; class MainWindow : public…
amol01
  • 1,823
  • 4
  • 21
  • 35
-1
votes
2 answers

Simple stripchart in C++ / Qt

I have some data coming over serial connection into my C++ Application. Now I wan't to make a simple GUI with a strip chart of those data plus some buttons. (Something like 10Hz refresh rate) The Buttons are not really a problem. But I didn't find…
magu_
  • 4,766
  • 3
  • 45
  • 79
1 2 3
35
36