QActionEvent¶
The
QActionEventclass provides an event that is generated when aQActionis added, removed, or changed. More…

Detailed Description¶
Actions can be added to widgets using
addAction(). This generates anActionAddedevent, which you can handle to provide custom behavior. For example,QToolBarreimplementsactionEvent()to createQToolButtons for the actions.See also
QActionaddAction()removeAction()actions()
-
class
QActionEvent(type, action[, before=None])¶ - param type
int- param before
QAction- param action
QAction
Constructs an action event. The
typecan beActionChanged,ActionAdded, orActionRemoved.actionis the action that is changed, added, or removed. IftypeisActionAdded, the action is to be inserted before the actionbefore. Ifbeforeis 0, the action is appended.
-
PySide2.QtGui.QActionEvent.action()¶ - Return type
QAction
Returns the action that is changed, added, or removed.
See also
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.