Instances ofQActioncan be created by passing a parentQObjector by using one of the convenience functions ofQMenu,QMenuBarorQToolBar. We create the actions that are in a menu as well as in a toolbar parented on the window to prevent ownership issues. For actions that are only in the me...