Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.2
-
fdd62a5b81 (qt/qtdeclarative/dev) fdd62a5b81 (qt/tqtc-qtdeclarative/dev) c5e049c7d3 (qt/qtdeclarative/6.3) c5e049c7d3 (qt/tqtc-qtdeclarative/6.3) c5e049c7d3 (qt/tqtc-qtdeclarative/6.3.1)
Description
There seems to be a limitation with custom Controls styles. Following this:
https://doc.qt.io/qt-6/qtquickcontrols2-customize.html#definition-of-a-style
A user might want to make a custom component (not part of the custom style) and a version of it for each of the styles relying on file selectors. For example, MyItem component could be created with following files:
MyItem.qml +Fusion/MyItem.qml +macOS/MyItem.qml
This should work perfectly fine with compile-time styling option using built-in styles. The style name is added to file selector so the correct style gets picked up.
However, if the user has created a custom style called MyCustomStyle, which itself works fine, but then tries to add special case also for MyItem:
+MyCustomStyle/MyItem.qml
But unfortunately nothing is adding MyCustomStyle into the file selectors, and instead there is only the underlying fallback style added to the file selectors, so only the version for the fallback style is loaded.
Attachments
Issue Links
- relates to
-
QTBUG-67062 Add full/public theming support for QQC2 styles
- Open