Qt 6.11 is out! See what's new in the release
blog
backgroudRole() of QFrame
-
Hi all,
I'd like to set custom "fill" color in a QFrame. But depending on the used style, the color role to change inside its QPalette is different.
What is the "official" baskground role of a QPalette ?
Thanks
-
Hi,
QPalette::Windowbut note that styles are free to ignore the palette in order to stick with the platform. Depending on what you want to do a QProxyStyle might be simpler. -
Thank you