Widgets¶
QtMenu¶
http://doc.qt.io/qt-5/qtwidgets-mainwindows-menus-example.html
QtActionGroup¶
Keeps a set of CppQtAction together. Normally exclusive - only one can be checked (c.f. radiobuttons) but behaviour can be turned off with exclusive = False
Create¶
alignmentGroup = new QActionGroup(this);
Add actions to group¶
alignmentGroup->addAction(leftAlignAct);
alignmentGroup->addAction(rightAlignAct);
alignmentGroup->addAction(justifyAct);
alignmentGroup->addAction(centerAct);
Check / activate one of the options¶
leftAlignAct->setChecked(true);