QT Styles
-
I'm having some issues with QT6 on Windows. I want to use QT.Controls.Styles 1.4, in order to edit the style of a progressbar, but when I try and import the statement, I just get the error that the QML module is not found. I have QT.Controls 2.2 installed and working. I'm currently using QT 6.2.4, and when in the maintenance tool, I have everything under that checked and installed. Any help would be greatly appreciated!
-
I'm having some issues with QT6 on Windows. I want to use QT.Controls.Styles 1.4, in order to edit the style of a progressbar, but when I try and import the statement, I just get the error that the QML module is not found. I have QT.Controls 2.2 installed and working. I'm currently using QT 6.2.4, and when in the maintenance tool, I have everything under that checked and installed. Any help would be greatly appreciated!
I want to use QT.Controls.Styles 1.4
You can't. These components are for Controls 1.x, they won't work with Controls 2.x.
To style Controls 2.x, use https://doc.qt.io/qt-5/qtquickcontrols2-styles.html
-
I want to use QT.Controls.Styles 1.4
You can't. These components are for Controls 1.x, they won't work with Controls 2.x.
To style Controls 2.x, use https://doc.qt.io/qt-5/qtquickcontrols2-styles.html
-
Sorry, slightly wrong link. Here's a better one: https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-button
Controls 2 can be styled, and it can be done in multiple ways.
I want to use a custom ProgressBarStyle, can I use a QT.Controls.1.x to make it work?
Yes you can mix Controls 1 and Controls 2. But be aware that Controls 1 are:
- slow
- deprecated in Qt 5
- not available in Qt 6