Plasma::RadioButton cannot be AutoExclusive?

Marco Martin notmart at gmail.com
Mon Dec 8 10:00:26 CET 2008


On 12/8/08, Aaron J. Seigo <aseigo at kde.org> wrote:
> On Sunday 07 December 2008, Ben Cooksley wrote:
>  > Hi,
>  >
>  > I am developing the KuickQuiz plasmoid ( currently very alpha in
>  > playground/base/plasma/applets/kuickquiz ) and use
> Plasma::RadioButton
>  > to allow the user to choose the multi choice answer they want.
>  > However, I have ran into the issue of despite 4 Plasma::RadioButtons
>  > having the same parent, the radio button itself is never auto
>  > exclusive, so when the user changes their mind, the answer does not
>  > automatically switch to the newly chosen choice, and both become
>  > chosen so the user could potentially cheat and choose all of the
>  > choices.
>
>
>
> what are the RadioButtons parented to, exactly?
>
>
>
> > Can anyone give me an insight into why this is happening? could it be
>  > because they are all individually parented to seperate
>  > QGraphicsProxyWidgets?
>
>
>
> if so, that would be a bug in QGraphicsProxyWidget.

aren't radio buttons auto exclusive just in respect of their immediate
parent? that in this case is the proxy?
i'm not sure that is really a buggy behaviour, they have no qwidget in
their ancestors, so they aren't linked...
a solution could be reimplementing the interaction with the parent
widget with plasma::frame (not sure how to do it, would be a signal
storm of some kind probably)

or using normal radio buttons in plasma::groupbox, widget that its
existence never convinced me.
either it is necessary to make radio buttons work, or should be
removed before 4.2, really

Cheers,
Marco martin
>
>
> > By the way, creating a Plasmoid has been a very easy experience, and
>  > 4.2 Plasma rocks! (running trunk)
>
>
>
> =)
>
>
>
> --
>  Aaron J. Seigo
>  humru othro a kohnu se
>  GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
>
>
>
> KDE core developer sponsored by Qt Software
>
>
>
>
> _______________________________________________
>  Plasma-devel mailing list
>  Plasma-devel at kde.org
>  https://mail.kde.org/mailman/listinfo/plasma-devel
>
>
>


More information about the Plasma-devel mailing list