Questions tagged [qactiongroup]

QActionGroup is a class from the Qt Toolkit which groups actions together.

Documentation can be found here (Qt4) and here (Qt5).

3 questions
0
votes
0 answers

Adding checkable QToolButton to QToolBar with an icon, a text and a menu

Currently, I have a QToolBar with different checkable actions grouped in QActionGroups set to autoExclusive. This works well. Now, I would like to have one QAction with a menu so that user can choose the behavior of this action. So I decided to use…
zigma12
  • 181
  • 1
  • 7
0
votes
2 answers

How to unchecked all actions on an action group menu on Qt?

I have a method to automatically add checkable actions on a menu and it's working perfectly. I just like to know how to unchecked all these actions automatically. I know that it's possible with ui->action_item->setChecked(false) but in this case I…
Jeff Pal
  • 1,519
  • 1
  • 17
  • 28
0
votes
1 answer

Having a QToolButton w/ Menu being checked if any of the checkable QActions within that menu is checked

Say I have a QToolButton with a delayed action showing a menu. Said menu contains a number of checkable actions. In this particular case it's a button activating a zooming tool, and there are 3 zooming modi QActions available, organized in a…
datenwolf
  • 159,371
  • 13
  • 185
  • 298