Qt-interest Archive, May 2007
QActionGroup,Uncheck Action,Qt-4.2.2,Windows
Message 1 in thread
Hello
I have created a QActionGroup in order to take advantage of its exlusive
property, but actions added on this actiongroup
have became uncheckable. Is it possible to set actions unchecked? Any
advices?
Thanks in advance.
--
[ signature omitted ]
Message 2 in thread
Nikos Geronitidis wrote:
>
> Hello
>
> I have created a QActionGroup in order to take advantage of its exlusive
> property, but actions added on this actiongroup
> have became uncheckable. Is it possible to set actions unchecked? Any
> advices?
After creating the actions do you call QAction::setCheckable(bool b)
with the argument b set to true?
--
[ signature omitted ]
Message 3 in thread
Yes actions added in the actiongroup have been set correctly:
QAction::setCheckable(bool b) with argument b set to true;
Only if QActionGroup::setExclusive(false) is called can actions be
uncheckable..
---------- Forwarded message ----------
From: John McClurkin <jwm@xxxxxxxxxxx>
Date: May 14, 2007 2:58 PM
Subject: Re: QActionGroup,Uncheck Action,Qt-4.2.2,Windows
To: qt-interest@xxxxxxxxxxxxx
Nikos Geronitidis wrote:
>
> Hello
>
> I have created a QActionGroup in order to take advantage of its exlusive
> property, but actions added on this actiongroup
> have became uncheckable. Is it possible to set actions unchecked? Any
> advices?
After creating the actions do you call QAction::setCheckable(bool b)
with the argument b set to true?
--
[ signature omitted ]