Construct a QActionGroup and use QActionGroup::triggered(QAction*).