Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, July 2007
Qt3.3 Qaction


Message 1 in thread

Hi,
I have a toggled action group containing two actions which behaves 
strangely. These two actions are exclusive and are set according to the 
properties mention below.

*Strange behavior:
I created two actions which I connected to each of the button to tell me 
the value of the toggled. When I click on action 1 or 2, it toggles and 
I get my message saying toggle value =1 but when I press it again, when 
these button are toggled, I get a message saying toggle value is 1 and 
another one just behind saying toggle value is 0 and the correct button, 
in the two cases is toggled.

Is this a normal behavior?

The problem with this behavior is that I wanted to set one of my 
variable according to the toggled value, but if it emits two 
contradicting signal, I do not know how to deal with them.  Is there a 
way to solve my problem?
Thank,
Marie


*Properties
group properties:
on:  false 
enabled: true
visible: true
exclusive: true

action 1 properties:
toggleaction: true
on: false
enabled: true
visible: true

action 2 properties:
toggleaction: true
on: false
enabled: true
visible: true

--
 [ signature omitted ]