Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
Description
In Qt 5 it was possible to assign QPalette to ApplictationWindow, but in Qt 6 it is now QQuickPalette and that class is private.
For example, one might want to do something like:
ApplicationWindow { palette: MyPalette.currentPalette }
But this does not seem possible to do with c++.
Internally the QQuickPalette class also seems to be able to construct the palette from QPalette, maybe exposing this and making it possible to initialize the Palette type from QPalette in QML code could be one a solution.
Another solution could be to make QQuickPalette public so that it can be constructed fully from c++ code.