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

Updating a label in PyQt4 after file selected

I am using PyQt4 to create a single window to prompt the user to input text (like the name of the report) and to select files to generate a report. I'd like to keep everything in that window. It's a little bit of a dumb window... there's buttons on…
mauve
  • 2,707
  • 1
  • 20
  • 34
0
votes
1 answer

Layout in html to print using QPainter

How can I use QPainter to access my layout in html? example layout html for print: QString address= "Example address"; QString html_layout_print; html_layout_print = "
Layout html for print
" "
user628298
  • 287
  • 2
  • 14
0
votes
1 answer

QT TableView - Show Icons

I'm having problems, show Qicon in rows. now: I would like to show: my code. But the icon does not appear and there is no compiler error: c lass MySubClassedSqlTableModel : public QSqlTableModel { Q_OBJECT public: …
user628298
  • 287
  • 2
  • 14
0
votes
0 answers

create and add QMenu to QToolButton via Designer

i wonder how it is possible to define popup menus in Qt Designer and add them to some toolbutton. i know how this is done in code but i think it have to be possible in designer too. otherwise i would have gui defining code in my class that is a bit…
vlad_tepesch
  • 6,681
  • 1
  • 38
  • 80
0
votes
1 answer

QT QSqlTableModel - background color in a given data column

I have a tableView example: Like when the data column status is S. The background color of the table would be green and when N would be red. Example of what I want: My code: MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new…
user628298
  • 287
  • 2
  • 14
0
votes
1 answer

PyQT: How to call Dialog from within another Dialog (QMainWindow)

Running a code posted below brings a Dialog_01 QMainWindow with one button on it. Clicking the button should close this window (Dialog_01) and replace it with another: Dialog_02 which is practically a copy of the first. Clicking Dialog_02 button…
alphanumeric
  • 17,967
  • 64
  • 244
  • 392
0
votes
1 answer

Subclassing QUiloader and reimplementing createWidget function of it

I needed to read widget classnames, names etc from gui loaded via QUiloader. And I got answer here that I needed to subclass QUiloader and reimplement its method. I have MainWindow, and via menu/toolbar I load the file, and show it. And when I…
amol01
  • 1,823
  • 4
  • 21
  • 35
0
votes
2 answers

After Macbook migration Library not loaded

dyld: Library not loaded: QtGui.framework/Versions/4/QtGui Referenced from: /usr/local/lib/libopencv_highgui.2.4.dylib Reason: image not found (lldb) Can anyone help to fix this problem ?
0
votes
1 answer

Controlling Widget Placement inside PyQt QFormLayout

A simple QtGui.QListWidget is placed inside of a QtGui.QFormLayout. This list widget's sides are beautifully stick to the side edges of the main dialog box but not to the dialog's bottom or top edge. The list widget re-sizes itself only when a main…
alphanumeric
  • 17,967
  • 64
  • 244
  • 392
0
votes
2 answers

How to run GUI application from userdefined boot time daemon server

I am writing one simple server daemon and running with /etc/init.d/server its running properly but when i want to run one simple QT GUI with system() function , its not able to run it and returning 256 as return code . if same daemon i m running…
0
votes
1 answer

QImage::scaleHeight transformation mode returning NULL image

I'm trying to resize the image size to 120X240. image = image.scaledToHeight(120); image = image.scaledToWidth(240); For some images which have dimension 837x630 ,getting error as, QImage::scaleHeight: Image is a null image QImage::scaleWidth:…
user3167959
  • 31
  • 1
  • 6
0
votes
1 answer

Running a QT application from Command promt in WIndows

I have made a small QT application and i am trying to run it thru command prompt on Windows: #include #include int main(int argc,char* argv[]) { QMainWindow a(argc,argv) QLabel *NewLabel = new QLabel("Hi i am a…
Metoo
  • 400
  • 1
  • 7
0
votes
1 answer

Accessing coordinates within each curve of SVG

I am using Qt framework to develop a desktop application. I want to load, do some modification and save. So I basically need to access some coordinates within each curve (i.e. control points for Bezier curves, or just even vertices of polylines). I…
0
votes
2 answers

delay in displaying QStackedWidget Item in qt

I am using QStackedWidget item. But for the first time it is taking time and after a while it is working properly. mymainwindow::mymainwindow() : QMainWindow() { stack = new QStackedWidget(); list = new QListWidget(); …
Suresh
  • 745
  • 4
  • 11
  • 25
0
votes
0 answers

QImage is null while reading image from resources

I am developing a simple fps shooter for a college project. I am using C++, Qt and OpenGL and I'm having a problem during texture loading. I put my textures into resource file. After loading, QImage object which stores a texture, is null. Here is my…