Top "Qt4" questions

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

QLabel: set color of text and background

How do I set color of text and background of a QLabel ?

qt qt4 qlabel
How to make a Qt Widget grow with the window size?

I want to have a small QFormLayout that grows to fill its parent widget. I created a new .ui file …

qt4 autoresize qt-designer
Console output in a Qt GUI app?

I have a Qt GUI application running on Windows that allows command-line options to be passed and under some circumstances …

c++ windows qt qt4
Qt: resizing a QLabel containing a QPixmap while keeping its aspect ratio

I use a QLabel to display the content of a bigger, dynamically changing QPixmap to the user. It would be …

c++ qt qt4 qlabel
How to insert BLOB and CLOB files in MySQL?

I want to store images and .docx/.doc, .pptx/.ppt, .pdf files using the front end of my software. I …

mysql ubuntu qt4
Qt undefined reference to vtable

I am a beginner to Qt programming and use codeblocks for my programming. I created 3 files communicate.h,commmunicate.cpp …

c++ user-interface qt4 codeblocks
switch/case statement in C++ with a QString type

I want to use switch-case in my program but the compiler gives me this error: switch expression of type 'QString' …

c++ qt switch-statement qt4 qstring
what is the correct way to implement a QThread... (example please...)

The Qt documentation for QThread says to create a class from QThread, and to implement the run method. Below is …

multithreading qt qt4 qthread
Converting QString to char*

Possible Duplicate: QString to char conversion I have a function (fopen in STL) that gives a char* argument as a …

c++ string qt qt4
How to find Version of Qt?

How do I know which version of Qt I am using? When I open Qt Creator it shows "Welcome to …

qt4 pyqt qt-creator qtcore qtcpsocket