PDA

View Full Version : [solved] QRadioButton size



andzoff
15th March 2010, 11:29
Hi friends,

I'd like to change the QRadioButton size from 13 to 15 pixels, I mean the size of the button only.
By code or by designer, for me it's the same (just I would try to avoid to work with stylesheets, if it's possible).

I'm using the QMotifStyle and the Qt 4.2.3 framework on Linux.
Thank you in advance.
Andrea

zgulser
15th March 2010, 11:44
You just set width or height under "geometry" of the button from the designer:)..You mean something different?

high_flyer
15th March 2010, 11:45
I think you will have to use StyleSheets or custom painting.

andzoff
15th March 2010, 11:52
Thank you for your answer, but I mean something different.
I'd like to make bigger only the button, not the text or the widget area. Maybe in English we can say the bullet of the radio button, I'm not sure 'cause I'm not native English speaker, but I think that the bullet word can be usefull.
Thanks.

zgulser
15th March 2010, 11:57
Oh I see..

Try QRadioButton::indicator{

width: 15px;
height: 15px;
}

andzoff
15th March 2010, 12:44
Oh I see..

Try QRadioButton::indicator{

width: 15px;
height: 15px;
}

Oh great! This works!
So, for me it's solved. Thank you again.
Andrea