Plasma::RadioButton cannot be AutoExclusive?

Ben Cooksley sourtooth at gmail.com
Mon Dec 8 08:42:41 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?
They are parented to "this" which is "QuizQuestion" a subclass of Plasma::Frame.
the involved code is in quizquestion.cpp line 31 (
http://websvn.kde.org/trunk/playground/base/plasma/applets/kuickquiz/quizquestion.cpp
)
>
>> 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.
>
>> 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
>
>


More information about the Plasma-devel mailing list