Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
None
-
7c73d40b8215e8947b123dd006e7c62e93d396fa
Description
Currently supported methods are:
1) command line argument
2) environment variable
3) configuration file
We should add one more to be able to do it from C++. Setting the style works only before loading any QML that uses controls. It should throw a warning if attempted afterwards ie. when QML type registration has been done, so it's too late to change the style.
Attachments
For Gerrit Dashboard: QTBUG-50787 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
152167,4 | Rename QQuickStyle to QQuickStyleAttached | 5.7 | qt/qtquickcontrols2 | Status: MERGED | -2 | 0 |
152168,10 | Add public API for setting and getting the style from C++ | 5.7 | qt/qtquickcontrols2 | Status: MERGED | -2 | 0 |
152393,2 | Turn libQtLabsControls to a public C++ library | 5.7 | qt/qtquickcontrols2 | Status: MERGED | +2 | 0 |
152394,6 | Gallery: use QQuickStyle to set the style in C++ | 5.7 | qt/qtquickcontrols2 | Status: MERGED | +2 | 0 |