Top "Qt5" questions

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

C++ Qt where's the std::unique_ptr Qt version?

So when programming in Qt I like to go with the Qt implementation as far as possible. As far as …

c++ qt qt5
How to display embedded html in Qt WebView

I am trying to get the Qt WebView to display an html file that is embedded as a Qt resource, …

qt qml embedded-resource qtwebkit qt5
CMake and Qt5 AUTOMOC error

I have a project which uses Qt5 and I have a CMakeLists.txt file that I use for creating the …

qt cmake qt5 moc automocking
Range slider in Qt (two handles in a QSlider)

I am using Visual Studio 2010 with Qt 5.0.1 integrated. I need a range selection in QSlider. Is it possible to get …

qt qt5 qslider
What is the difference between a QWindow and QWidget

The Qt 5.0 provides a new QWindow class. While the documentation on this class is quite comprehensive, I am failing to …

qt5 qwidget
Using QAbstractListModel in ListView

I'm new with Qt , so please bear with me . I've successfully managed to populate a ListView from a StringList and …

qt listview qt5 qtquick2 qabstractlistmodel
How to rotate text for drawText?

I would like to rotate the text 45 degrees? QFont font; font.setPixelSize(12); //grid for(int i = 0; i < 10; i++){ painter-&…

c++ qt qt4 qt5 qpainter
Signal when a QListView selection changes due to keyboard activity?

I have a QDialog, created with QT Designer, that looks like so: The list of servers on the left is …

c++ qt qt5 qlistview
How to count a particular character in QString Qt

Imagine I have a QString containing this: "#### some random text ### other info a line break ## something else" How would I …

c++ qt qt5 qstring
How to set a different background-color to a disabled button with QSS?

I have already tried to use disabled and !enabled but it doesn't work. Here is my QSS code : QPushButton { background-color:#44…

c++ qt qt5 qtstylesheets qt5.3