Update: I was able to work around this by binding a prebuilt Palette object (whose various color property values are all contingent on colorScheme) to the ApplicationWindow's palette property.
That shows that the base palette still works, but not why it's failing to follow colorScheme by default (as is the case for Qt Widgets apps on Android or Qt Quick apps on other platforms).
Hi,
System styles such as those from Windows and macOS ignore certain hints and draw controls as expected for these platforms. Qt follows the platform user interface guidelines closely to ensure that applications looks as expected.
@JonB said in Palette overriding style sheet:
Any reason why you didn't use, say, static QPushButton dummyButton; here?
I guess I fumbled to long to actually get the style sheet to apply. I tried many different things (because I didn't see this documented anywhere). Must have overlooked this when cleaning up. Thank you! Will fix it in my code.
Hi,
I would start by checking if there where any changes to the style classes between the two releases.
Also, since you are using 5.15.8, it means you have a commercial license and thus can contact the Qt Company for support.