Top "Qt4" questions

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

How to set the font size of the label on pushbutton in Qt?

I am using this code to set a label on the pushbutton with size of 16 ui->pushButton->setText(…

qt4 qpushbutton
How to set text alignment on a column of QTableView programmatically?

So far the only solution I have found is to subclass QItemDelegate and implement my alignment rule in the paint() …

qt qt4
How to restart Linux from inside a C++ program?

I have a Qt 4 GUI where I need to have a option in a drop-down menu that allows the user …

c++ linux qt4 reboot suid
QNetworkReply wait for finished

I am using Qt 4.6.3 and the following not-working code QStringList userInfo; QNetworkRequest netRequest(QUrl("http://api.stackoverflow.com/1.1/users/587532")); QNetworkReply *…

qt networking qt4 qnetworkaccessmanager
Qmake does not support build directories below the source directory

I have created an application that compiles and runs like a charm on OS-X. I would now like to start …

qt qt4
how to restart my own qt application?

i just asking myself how to restart my own qt application? Can somebody please show me an example?

c++ qt qt4 application-restart
gdb remote cross debugging fails with "Remote 'g' packet reply is too long"

I have a problem with remote debugging. Host: laptop intel i5 with ubuntu 10.10 x86 Target: Freescale iMX35 (iMX35 PDK) arm 11 …

debugging qt4 gdb qt-creator gdbserver
Full-screen desktop application with QML

I have experience with developing rich user interface application with flex and AS3. However the issue is its very hard …

qt4 fullscreen qml
How to determine the platform Qt is running on at runtime?

Is there a (Qt) way to determine the platform a Qt application is running on at runtime?

qt qt4 cross-platform
Q_OBJECT linker error!

I am receiving the following linker error when I build my application. HIMyClass.obj:: error: unresolved external symbol "public: virtual …

c++ qt qt4 linker-errors qobject