c++qtqradiobutton

Display QRadioButton as QPushButton like c#


In c# I can apply this property on RadioButton

enter image description here

So the RadioButton is displayed like a PushButton but it's still a radio button.

Is there a way to do that with Qt in c++ ? maybe programmaticaly.


Solution

  • Use QPushButton and setCheckable( true ). This will get you the same behaviour as a QRadioButton.