Top "Qt4" questions

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

How to add submenu in Qt

How do I add a submenu from the menu below? I need a submenu to open, say, after clicking "A-&…

qt qt4 qt-creator
QML animations visible property changes

I want an animation to be painted when an element becomes visible (is should appear smoothly, not the whole at …

qt animation qt4 transition qml
PyQt4: combine textChanged and editingFinished for QLineEdit

Is there a way to combine textChanged and editingFinished for QLineEdit? The problem is that editingFinished is emitted even if …

qt qt4 pyqt pyqt4
HowTo restore QTreeView last expanded state?

What I have: QTreeView class with table data And connected QAbstractTableModel model Question: how to save expanded state of items? …

qt qt4 qtreeview
Obtaining MAC address on windows in Qt

I am attempting to obtain mac address on windows xp using this code: QString getMacAddress() { QString macaddress="??:??:??:??:??:??"; #ifdef Q_WS_…

qt4 qtnetwork
QWidget how to receive keyPressEvent inside child widgets

I have one main Widget and inside this main widget I have QListWidget and two buttons. I have override the …

c++ qt qt4 qwidget
QObject (QPlainTextEdit) & Multithreading issues

Im currently trying to learn Networking with Python asyncore and pyqt4. I coded a small server, which basically listens on …

python multithreading qt4 pyqt4 asyncore
adding child in QMainWindow

How can i add two child Widget objects in equal portion of QMainWindow. MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { TreeArea *…

qt4 qmainwindow
How can I set text of label when a function is running?

I want to set the text of a label on main window when a function in code is running. But …

qt qt4 qmainwindow mainwindow
Loading a simple Qt Designer form in to Pyside

I create a simple form in Qt designer and am trying to load it in to a Qt application I'm …

python qt4 pyside