Top "Qt5" questions

Questions specifically for version 5.x of the Qt library.

How to check the selected version of Qt in a .pro file?

I have multiple versions of Qt installed, and I need to compile my project with all of them. Using a …

qt qt4 qt5 qmake qtgui
How to update component in Qt 5.2.1+?

I see this message: at least one valid and enable repository required for this action to succeed whenever I try …

qt qt5
What is the use of various Qt platform plugins?

I was doing some cross compiling of a Qt5.2 application for an ARM based target (TI AM335x EVM) and …

linux qt plugins cross-platform qt5
How do you append an object to QList?

I'm trying to create a list of objects using QList, but I'm getting an error when I try to add …

c++ qt5 qlist
How to set stylesheet for the current item in QTableView

When QTableView edit control is visible for the current item the shylesheet of the edit takes place. When there is …

qt qt5 qtableview qtstylesheets
How to read complete data in QTcpSocket?

Now the server (implemented with java) will send some stream data to me, my code is like below: connect(socket, …

c++ qt qt5 qtcpsocket
Qt Color Picker Widget?

I have a QDialog subclass that presents some options to the user for their selecting. One of these options is …

qt dialog qt4 qt5 color-picker
Image rounded corners in QML

To my surprise, the Image component has no radius property. I tried emulating the rounded corners by putting the image …

qml qt5 qtquick2
How to link QtMain in CMake with Qt5?

I upgraded my project code from Qt4 to Qt5. It uses CMake. The conversion got well except for one line …

c++ qt c++11 cmake qt5
Qt 5 with SQLite: bindValue() results in "Parameter count mismatch" error

I'm doing a simple parameterized query with Qt 5.3.1 (64-bit) on Windows 7 using the SQLite driver. When I use bindValue() to …

qt sqlite qt5 qtsql qsqlquery