Qt-interest Archive, December 2006
QRadioButtons not exclusive
Message 1 in thread
According to the docs, "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."
But if I add two radio buttons to the same parent dialog (derived from
QDialog),
they are not exclusive. Each can be toggled on/off without affecting the
other.
Bug?
--
[ signature omitted ]
Message 2 in thread
They probably have to be part of a radio group, not just the dialog.
John Smith wrote:
> According to the docs, "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."
>
> But if I add two radio buttons to the same parent dialog (derived from
> QDialog),
> they are not exclusive. Each can be toggled on/off without affecting the
> other.
>
> Bug?
>
>
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>
>
--
[ signature omitted ]
Message 3 in thread
"Ken Beck" <nekkceb@xxxxxxxxxxx> wrote in message
news:4594644B.5090904@xxxxxxxxxxxxxx
> They probably have to be part of a radio group, not just the dialog.
Thanks
Yes, I can create a radio group and add the radio
buttons to it to fix this problem. But the documentation
seems to be in error, claiming "radio buttons that belong
to the same parent widget behave as if they were part
of the same exclusive button group."
--
[ signature omitted ]
Message 4 in thread
> Yes, I can create a radio group and add the radio
> buttons to it to fix this problem. But the documentation
> seems to be in error, claiming "radio buttons that belong
> to the same parent widget behave as if they were part
> of the same exclusive button group."
Are you sure that the radio buttons are direct children of the same
parent (eg. the dialog)? It won't work if the radio buttons have the
same grand parent. They must be direct children of the same parent.
--
[ signature omitted ]
Message 5 in thread
J-P Nurmi wrote:
>> Yes, I can create a radio group and add the radio
>> buttons to it to fix this problem. But the documentation
>> seems to be in error, claiming "radio buttons that belong
>> to the same parent widget behave as if they were part
>> of the same exclusive button group."
>
> Are you sure that the radio buttons are direct children of the same
> parent (eg. the dialog)? It won't work if the radio buttons have the
> same grand parent. They must be direct children of the same parent.
>
If they are, then you are right about the documentation bug, and should
report it to bugs@xxxxxxxxxxxxxx That would help others with the same
problem.
André
--
[ signature omitted ]
Message 6 in thread
"André Somers" <andre@xxxxxxxxx> wrote in message
news:en395b$r7c$1@xxxxxxxxxxxxxxxxxxxxx
> J-P Nurmi wrote:
>
>>> Yes, I can create a radio group and add the radio
>>> buttons to it to fix this problem. But the documentation
>>> seems to be in error, claiming "radio buttons that belong
>>> to the same parent widget behave as if they were part
>>> of the same exclusive button group."
>>
>> Are you sure that the radio buttons are direct children of the same
>> parent (eg. the dialog)? It won't work if the radio buttons have the
>> same grand parent. They must be direct children of the same parent.
>>
> If they are, then you are right about the documentation bug, and should
> report it to bugs@xxxxxxxxxxxxxx That would help others with the same
> problem.
Mail sent to bugs@xxxxxxxxxxxxx bounces back as undeliverable.
--
[ signature omitted ]
Message 7 in thread
On 29.12.06 09:43:55, John Smith wrote:
>
> "André Somers" <andre@xxxxxxxxx> wrote in message
> news:en395b$r7c$1@xxxxxxxxxxxxxxxxxxxxx
> > J-P Nurmi wrote:
> >
> >>> Yes, I can create a radio group and add the radio
> >>> buttons to it to fix this problem. But the documentation
> >>> seems to be in error, claiming "radio buttons that belong
> >>> to the same parent widget behave as if they were part
> >>> of the same exclusive button group."
> >>
> >> Are you sure that the radio buttons are direct children of the same
> >> parent (eg. the dialog)? It won't work if the radio buttons have the
> >> same grand parent. They must be direct children of the same parent.
> >>
> > If they are, then you are right about the documentation bug, and should
> > report it to bugs@xxxxxxxxxxxxxx That would help others with the same
> > problem.
>
> Mail sent to bugs@xxxxxxxxxxxxx bounces back as undeliverable.
There's a qt- missing in front of the address.
Andreas
--
[ signature omitted ]