Most voted "qtgui" questions
Gtgui is a module with GUI features. Containing useful classes for creating QT-based graphics applications.
Learn more…18 questions
Sort by count of
-
5
votes1
answer551
viewsHow can I create a 20-number Bet Card look in Jframe
It is a game where your bet will be competing to Sena, Quina and Quadra, so each bet can only have 6 numbers, I need the user to select 6 numbers from these 20 and then I take these 6 selected and…
-
5
votes1
answer354
viewsQt calling method in another class
I’m calling a method another class after entering data. But it is returning an Sqlite error: QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries…
-
3
votes1
answer171
viewsPrint Tableview Data with Qprinter
How can I get the data from a TableView add to layout html and print with QPrinter? Code: QString html; html = "<div>Titulo</div>" "<div>etc</div>"…
-
3
votes1
answer857
viewsHow to make a window transparent using Qt?
I’m developing a college job in Qt. I would like to make the background of my application transparent. I did some research and the function I found was: this->setWindowOpacity(0); Meanwhile, the…
-
3
votes1
answer114
viewsReturns the previous month of an informed date in Qt
How do I return the previous month of the date reported in Qt, has some function in the QDate what does it do? I just found the one that adds addMonths. Example: month 04 reported returns month 03.…
-
3
votes1
answer115
viewsWhat is the difference between the quit and Exit methods of qApp?
I’m testing the example Getting Started Programming with Qt Widgets and found a call for a method to exit the application: void Notepad::on_quitButton_clicked() { qApp->quit(); } I took a look at…
-
3
votes1
answer400
viewsWhich component to use in Pyqt4 to display records of an on-screen SQL query?
I’m developing a graphical Python desktop application using Pyqt4 (Qt Designer), my doubt is about which component use to display on my screen frmTelaPesqAluno records of an SQL query, and how to…
-
3
votes1
answer185
viewsHow to track mouse coordinates on a Qlabel?
Hello, I’m with a screen project using Qt Creator and I’m stuck with the following problem: I want to track the mouse coordinates by moving the cursor over a Qlabel. I saw in some other topics some…
-
2
votes1
answer80
viewsBackground and icon on tableView
I wonder, how do I add in a tableView to the property of background and icone? I can already add the Background now is missing the icon. Code: class tableView : public QSqlTableModel { Q_OBJECT…
-
2
votes1
answer156
viewsQT: How to prevent changing the content of a Qtablewidget
The title of the question says it all: How can I prevent editing a particular column of a QTableWidget? I have already done some research and I think the solution is to use a few flags, but I…
-
2
votes1
answer432
viewsButton running shell script
By clicking the Save button, wanted the contents of the text box (which I typed or pasted into Plain text) was inserted at the end of a certain text file that exists in my home. This process I…
-
1
votes2
answers287
views -
1
votes1
answer491
viewsHow to get the contents of the selected cell in the Qtableview Python Grid?
How can I get the contents of cell selected in a Grid of the kind QTableView in Python? Follow the code below: __author__ = 'Dener' from PyQt4.QtCore import * from PyQt4.QtGui import * import sys…
-
1
votes0
answers56
viewsVisual programming QT C++
I have a job for college and would like the help of veterans at one point. I want to create a block with inputText, checkbox and combobox frame image. Using for example Qgridlayout is easy to…
-
0
votes1
answer63
viewsUpdate a Combobox after opening Qdialog
How do I update a Combobox after opening a Qdialog? The code below does not update if you have an update in db. I have to close the application and open to show the new data: Dialog::Dialog(){…
-
0
votes0
answers54
viewsHow to connect dialog boxes in Qtdesigner and run py from them?
I’m new to programming in python and I already have some doubts. A friend created for me two codes in py using pu 2.7, Numpy and Scipy. I created an interface for these codes but don’t know how to…
-
0
votes2
answers261
viewsI connect to the database but the values do not change when I give UPDATE MYSQL Qt C++
The data is loaded in the table, then I change the data in the table, when I click on the update button, I can take the data (even the changes) and save it in the variable, but it seems that when I…
-
0
votes1
answer62
viewsAccessing a Pyqt5 Widget and modules within a package
I am making a program using as GUI the framework PyQt5, using UI files. I’m having trouble accessing the module inside the file .py that I create so that I put the functions inside them and thus…