Top "Qt4" questions

Questions specifically relating to the deprecated version 4.x.x of the Qt C++ GUI library.

Manipulate data in a QAbstractListModel from a QML ListView

I have a QML ListView which uses a QAbstractListModel subclass as a model. ListView { id: myListView x: 208 y: 19 width: 110 height: 160 …

c++ qt qml qt4 qt4.8
Create .csv file in C++ in qt

I want to create an csv file using c++, using Qt for application and UI framework. Is there's library for …

c++ qt qt4 export-to-csv qtcore
Qt error: undefined reference to 'gluOrtho2D'

I have the same error than here. There's no solution there and also I'm gonna try to explain it more …

qt opengl qt4 ubuntu-11.10
QLineEdit Validation for {[A-Z] [a-z][0-9]} text input

I want to accept a new username from the user in my application. I want the username string to contain …

validation qt4 expression qlineedit
QFileDialog to open multiple files

I am trying to show a dialog box to open multiple files but seems like it is not working. The …

python qt4 qfiledialog
How to create a multi window Qt application

I have a mainwindow application created from qt widget. Now I want to add a child window to this mainwindow …

qt qt4 qt5 qtgui
Slot is being called multiple times every time a signal is emitted

I am using one signal and slot connection in a block. My code as follows in a.cpp { QObject::connect(…

c++ qt qt4
multiple sql statements in QSqlQuery using the sqlite3 driver

I have a file containing several SQL statements that I'd like to use to initialize a new sqlite3 database file. …

qt sqlite qt4 prepared-statement qtsql
How to show icons without text in QListWidget?

I want to show only icons in my QListWidget. I set text to empty string. When I select an icon …

qt qt4 icons qlistwidget
QMainWindow with only QDockWidgets and no central widget

We have a window with several components in QDockWidgets. Ideally, we'd like to have all components dockable, but there is …

qt4 pyqt4