tags:

views:

254

answers:

1

Hello,

I'm attempting to change the style of a button using the :checked and :unchecked pseudo-states, but have not been successful.

I have tried a variety of different combinations to no avail.

#btnOnOff:checked { ... }
#btnOnOff:unchecked { ... }
#btnOnOff.QPushButton:unchecked { ... }

None of these seem to be working.

A: 

Have you tried this?

QPushButton#btnOnOff:checked {}
erelender
Yes, I've tried that and it also does not seem to work for me.
Michael
Correction, this does work. Thanks.
Michael