PDA

View Full Version : QRadioButtons apperance



nightroad
16th March 2011, 10:10
Hi there,

since I came from Windows my first thought it would be very easy to do. It seems I was wrong or I am missing something.

I have not found a simple way to force QRadioButton to paint itself as a QPushButton.

The only solution i've found using QPushButtons in groupbox if it's clicked i'm checking state of qpushButton. if it's not checked i'm setting its property to checked then other buttons i'm gonna set unchecked. This way is so boring as i said is there anyway to use radiobuttons with push button appearance ?

wysota
16th March 2011, 10:50
Use QCommandLinkButton or add pushbuttons to an exclusive QButtonGroup.

nightroad
16th March 2011, 11:49
Hi wysota thx for quick response, it was so helpfull ...