[Qt-interest] setpalette
Duane Hebert
spoo at flarn.com
Tue Feb 23 17:50:17 CET 2010
"Nicola De Filippo" <nicola at nicoladefilippo.it> wrote in message news:201002231452.29668.nicola at nicoladefilippo.it...
> Hi,
>> Have you setAutoFillBackground(true)?
>>
>
> yes.
Setting the button background color will not work properly on windows after xp and even
with xp, it won't work depending on themes and such.
(See the caution at the end of the help for setpalette().)
You need to use style sheets:
MyButton->setStyleSheet("background-color: purple");
Or check the help for style sheets.
More information about the Qt-interest-old
mailing list