PDA

View Full Version : Checkable and exclusive Actions (Toolbar buttons)



winder
10th February 2010, 14:10
Hello...

i created a toolbar, using two actions, that are checkable and exclusive (adding them to the same QActionGroup etc.) When the application starts, both of these toolbar buttons are unpressed. The problem is, that if you press a button it is checked, but then if you press it again, nothing happens, it doesn't go back! If i remove the exclusiveness, then buttons can be unchecked as expected.

Is this a bug or sth?

thansk in advance

winder
11th February 2010, 03:59
I removed the ActionGroup, and implemented the selection - deselection manualy. Not a big deal.

I suppose groups are only used when one action must always be selected. Anyway...