PDA

View Full Version : Toolbar/menu actions with radio behavior?



brcain
15th January 2010, 22:48
Is it possible to achieve radio button behavior for a group of actions ... for example that might be in a toolbar or menu?

There is no autoExlusive property for an action. So how, is this achieved? Ideally, I'd like to set it in Designer.

Coises
15th January 2010, 23:10
There is no autoExlusive property for an action. So how, is this achieved?

I think you want a QActionGroup.


Ideally, I'd like to set it in Designer.

I think you’re stuck on that one. You can define and associate the QActions in Qt Designer, but you’ll have to insert them into a QActionGroup in code.