[PyQt] Moltiple_selection

Lukas LuHe at gmx.at
Mon Jan 12 15:26:48 GMT 2009


Hello Luca,

> Hello
>
> I have made a groupBox with 3 radioButton, how i can make that more than
> one radio button can be selected.

Have a look at 
http://doc.trolltech.com/4.4/qabstractbutton.html#autoExclusive-prop

autoExclusive : bool

This property holds whether auto-exclusivity is enabled.

If auto-exclusivity is enabled, checkable buttons that belong to the same 
parent widget behave as if they were part of the same exclusive button group. 
In an exclusive button group, only one button can be checked at any time; 
checking another button automatically unchecks the previously checked one.

The property has no effect on buttons that belong to a button group.

autoExclusive is off by default, except for radio buttons.

Access functions:

    *
      bool autoExclusive () const
    *
      void setAutoExclusive ( bool )



> Regards
>
> Luca
>

Lukas

>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt



More information about the PyQt mailing list