Description
When using the 'Generate CMakeLists.txt' functionality in QDS under Build menu the produced CMake project doesn't include qtquickcontrols2.
So when opened, built & ran in Qt Creator the application will use default style for QtQuickControls2 components making the application look very different (and ugly) between QDS and Qt Creator.
Workaround:
- Copy qtquickcontrols2.conf under content directory
- Add RESOURCES qtquickcontrols2.conf in qt6_add_qml_module() in file content/CMakeLists.txt
- Add qputenv("QT_QUICK_CONTROLS_CONF", "content/qtquickcontrols2.conf"); to main.cpp
Attachments
For Gerrit Dashboard: QDS-5815 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
387396,2 | CMake generator: Include qt control configuration file in executable | 6.0 | qt-creator/qt-creator | Status: MERGED | -1 | 0 |
387464,2 | Wizards: Include qt control configuration file in executable | 6.0 | qt-creator/tqtc-plugin-qtquickdesigner | Status: MERGED | +2 | 0 |