最后,我终于能够弄清楚了。我们必须使用一个调用Action Builder的方法创建另一个类
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...