Qt SQuared radio button [Solved]
-
Hello guys,
I want to create a squared radio button, with the text inside the button. Is that possible? I think the button shape could be changed trough css, but what about the text?
Any hint?
-
It will be more clear if you can attach an image of your requirement.
-
I agree with Sam, but I'd also like to add a word of warning: it is generally a Very Bad Idea(TM) to change the shape of controls users are used to. If a control looks a certain way, it is generally expected to work a certain way, and vise versa.
Also, if you want something that looks like button, why not use a set of buttons? Buttons can also be toggled, and they can also be mutually exclusive by putting them in a [[doc:QButtonGroup]].
-
A QPushButton that works like a QRadioButton
-
bq. Also, if you want something that looks like button, why not use a set of buttons? Buttons can also be toggled, and they can also be mutually exclusive by putting them in a QButtonGroup.
that's exactly what I need. Thank you
-
Please mark your topic as [Solved] then (edit your first post, and modify the title). Glad I could help.