Qaction example . These actions can be triggered by the user and perform specific tasks when activated. For example, if you have a Left Align action, a Right Align action, a Justify action, and a Center action, only one of these actions should be active at any one time. menuBar() File menu is added to the menu bar by addMenu() method. For example, in a word processor, if the user presses a Bold toolbar button, the Bold menu item will automatically be checked. The examples work with QMainWindow, QAction, QMenu, and QApplication classes. The receiver is usually the class that you created that has all of your methods. So for example, a QAction has a . mainwindow. Example : Feb 21, 2015 ยท You can store your parameter in the action itself as a QVariant using QAction::setData() function. yfuaqzstfkebmquslmdlngsykfdhzjrqeggacbofxhbwhjtphnjcfcdzkkzomsbugphyztzewozkj