On Wed, Jul 18, 2018, 5:21 AM Marcus Ottosson <konstrukt...@gmail.com>
wrote:

> Alternatively, instead of two layouts, parent them to two widgets, each
> with their own layout, and put the two widgets in a third layout.
>

I like your suggestion of using QButtonGroup as opposed to managing it by
layout and parent. A group is more explicit about the logic and is the way
I always go.


> On 17 July 2018 at 18:20, Marcus Ottosson <konstrukt...@gmail.com> wrote:
>
>> See http://doc.qt.io/qt-5/qradiobutton.html#details
>>
>> Radio buttons are autoExclusive by default. If auto-exclusive is enabled,
>> radio buttons that belong to the same parent widget behave as if they were
>> part of the same exclusive button group. If you need multiple exclusive
>> button groups for radio buttons that belong to the same parent widget, put
>> them into a QButtonGroup.
>>
>> Looks like you’ll need two “groups”.
>> ​
>>
>> On 17 July 2018 at 18:13, yann19 <yangki...@gmail.com> wrote:
>>
>>> I would also like to add on that (unable to edit the post), if I clicked
>>> on the option - "Max", it will gets unchecked, and only 1 radio button
>>> selection can only be made thereafter..
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to python_inside_maya+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/ed1782d9-0dc5-4dbb-9d31-45d6ad48872f%40googlegroups.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/ed1782d9-0dc5-4dbb-9d31-45d6ad48872f%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODzwGdymXZVfKeOdu0o0cLvmRTGGS7NvSvrQF%2BYF3rfTg%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODzwGdymXZVfKeOdu0o0cLvmRTGGS7NvSvrQF%2BYF3rfTg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2VGOE9WcQUoS26ypv8EzqgF6yVqVcbpsypFiqTk3A80w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to