[Interest] How to produce a cluster of radio buttons?

Syam Krishnan syamcr at gmail.com
Fri Aug 31 04:58:06 CEST 2012


On 08/31/2012 05:07 AM, Shriramana Sharma wrote:
>
> Can anyone please tell me how to set the width of the radio button
> same as the height (since only the button part and no label is being
> displayed) and hwo to ensure that the components of this cluster are
> fixed w.r.t one another when the window is resized?

Try having another QWidget as the background parent widget of the 
buttons. Set it to have fixed size and set maximum (and minimum) size. 
Now you cat try to have a QGridLayout on it and add your radio buttons 
to the 3x3 grid.

regards,

Syam



More information about the Interest mailing list