Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
3cf7f87f0 (dev), 0578b9238 (6.9), 6c464f898 (6.8)
-
framework-content 4, framework-content 5
Description
https://doc.qt.io/qt-6/qquickattachedpropertypropagator.html#details instructs developers to "Define set/inherit/propagate/reset functions for each property as needed".
Out of the 4 functions that must be defined for a property, the page only shows code snippets for 2 of them: "propagateTheme()" and "resetTheme()"
Suggestion
Also add snippets to https://doc.qt.io/qt-6/qquickattachedpropertypropagator.html to demonstrate implementations of "setTheme()" and "inheritTheme()". Such implementations are available at https://code.qt.io/cgit/qt/qtdeclarative.git/tree/examples/quickcontrols/attachedstyleproperties/MyStyle/mystyle.cpp?h=6.8