Try the following:
Open the designer, pull a Pushbutton on an empty widget, make it checkable and give it the following style sheet
This should make the unchecked button green and the checked button red.Qt Code:
To copy to clipboard, switch view to plain text mode
However, what happens is:
It's green when unchecked
It's lightgray when checked
It's red whil you keep it pressed when it is in the checked state.
What am I missing. The documentation says "Checkable QPushButton have the :checked pseudo state set. "
I am using XP and Vista (happens in both) and Qt 4.3.2
Regards,
Rainer
Bookmarks