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

QDoubleSpinBox: how to reduce the number of digits after the decimal point?

How I can reduce the number of digits after the decimal point? The default is 6 characters. Too many. TY.
Maksim Nesterenko
  • 5,661
  • 11
  • 57
  • 91
0
votes
1 answer

QLabel take full size into QToolBar

I want to put QLabel into QToolBar. I do that but the QLabel changes QToolBar size, and does not fill it, see the first image below. What I need is make QLabel fill the QToolBar and resize the image, to be the same size as QLabel and…
Amr Eisa
  • 33
  • 5
0
votes
1 answer

Use Qt.MidButton and Qt.MidButton+Qt.ControlModifier in PyQt to rotate and translate/pan

I am working on a simple 3D viewer using PyQt and its bindings for OpenGL. I would like to implement the following user actions (like for example in solidworks): pan/translate: with combination ctrl+middle mouse button (pressed) rotate: middle…
lskrinjar
  • 5,483
  • 7
  • 29
  • 54
0
votes
1 answer

How to move axes to the middle of QCustomPlot

By default QCPAxisRect has four axes which arrange in a rectangle. I want a plus type axis at the the center of QCustomPlot. How can I do that?
adnan kamili
  • 8,967
  • 7
  • 65
  • 125
0
votes
1 answer

Including Qt tools in a dll project with Visual Studio 2010

I am creating a dll project using Visual Studio 2010. Can QWidgets like QLabel, QPushButtonand QImage, etc be inserted in a dll project? Can I import Qt functions into a dll project?
MelMed
  • 1,702
  • 5
  • 17
  • 25
0
votes
1 answer

how to integrate qt libraries in eclipse c?

I am currently working on a project which uses opencv in eclipse. There was another project given to me which uses qt gui instead, I was wondering if there is a way to include qt libraries in eclipse, e.g. QGraphicsObject? I hope the question is not…
venky
  • 3
  • 3
0
votes
1 answer

QDialog will not appear except if I call it?

This does not work: void MainWindow::on_left_win_clicked() { Dialog *dialog1 = new Dialog(this); dialog1->show(); return; } However this does: void MainWindow::on_left_win_clicked() { QDialog *dialog1 = new QDialog(this); …
trippedoutfish
  • 357
  • 1
  • 4
  • 8
0
votes
1 answer

Creating a QApplication inside of a method in non-qt application

I have a larger application and I want to create GUI dialog for one specific subtask. I decided to use Qt but I am not familiar with it so I am doing this thing probably the wrong way. My quick and dirty prototype: void…
Honza Brabec
  • 37,388
  • 4
  • 22
  • 30
0
votes
1 answer

Push button for QTableView

I would like add QPushButtons to my QTableView. How can this be done with Qt? Is it possible to specify which column holds the button If I use QItemDelegate?
user476566
  • 1,319
  • 3
  • 26
  • 42
0
votes
1 answer

Display int as QString in QTableView column

I have a QTableView linked to a QSqlTableModel. In this table, there is a column that is a integer. Each value of this one matches with a QString. I already used a QComboBox delegate in order to select the QString when editing. But when the value is…
Tristan Djahel
  • 1,082
  • 2
  • 12
  • 22
0
votes
0 answers

how can I create an extension for Qt application

There is this guide: http://qt-project.org/doc/qt-4.8/plugins-howto.html It is totally useless, because it is missing too many crucial information. However after few hours of some research I figured out how to get somewhere: Source code of interface…
Petr
  • 13,747
  • 20
  • 89
  • 144
0
votes
1 answer

g++ doesn't find file despite correct path

I downloaded source of qt 5.1.1 and successfully built it. Now I'm trying to test it and set the correct paths variables. I got all include files in /usr/local/qt511/include and libs in /usr/.../lib , and when I'm trying to build it with g++ with…
kotu
  • 90
  • 1
  • 8
0
votes
2 answers

QLineEdit -- how to enter single value -- with no spaces

I have made an editor in which i have to enter a Hex or decimal value in each field. Here the field i am using is QLineEdit. Now requirement is that each Qlineedit box accept only one value without spaces. Then i can read this text value & convert…
Katoch
  • 2,709
  • 9
  • 51
  • 84
0
votes
1 answer

How to handle a QDialog displayed out of screen?

I have a main widow. I move it to an bottom edge or corner. Then I open a dialog by click some button in it. The dialog is positioned at the center of the main window since I set the main window as its parent. However, the dialog is not displayed on…
user1899020
  • 13,167
  • 21
  • 79
  • 154
0
votes
0 answers

On BeagleBone Black QtGui application doesn't open GUI window, instead runs in terminal

I am using Qt Creator 2.4.1 Based on Qt 4.8.0 (32 bit) Built on Mar 21 2012 installed on virtual box with Ubuntu. I have BeagleBone Black of Revision A5B. i have apt get qt4-embedded on it. I have created a QtGui application and copied the same into…