Skip to content

Instantly share code, notes, and snippets.

@chchwy
Created June 27, 2013 13:56
Show Gist options
  • Save chchwy/5876612 to your computer and use it in GitHub Desktop.
Save chchwy/5876612 to your computer and use it in GitHub Desktop.
Qt: Iterate all QActions
QList<QAction*> actionList = findChildren<QAction*>();
foreach ( QAction* action, actionList )
{
qDebug() << "Action: " << action->text()
<< "Shortcuts:" << action->shortcut().toString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment