QAction Class Reference
[QtGui module]
Inherits QObject.
Inherited by QWidgetAction.
Types
- enum ActionEvent { Trigger, Hover }
- enum MenuRole { NoRole, TextHeuristicRole, ApplicationSpecificRole, AboutQtRole, ..., QuitRole }
- enum Priority { LowPriority, NormalPriority, HighPriority }
- enum SoftKeyRole { NoSoftKey, PositiveSoftKey, NegativeSoftKey, SelectSoftKey }
Methods
- __init__ (self, QObject)
- __init__ (self, QString, QObject)
- __init__ (self, QIcon, QString, QObject)
- QActionGroup actionGroup (self)
- activate (self, ActionEvent)
- list-of-QGraphicsWidget associatedGraphicsWidgets (self)
- list-of-QWidget associatedWidgets (self)
- bool autoRepeat (self)
- QVariant data (self)
- bool event (self, QEvent)
- QFont font (self)
- hover (self)
- QIcon icon (self)
- QString iconText (self)
- bool isCheckable (self)
- bool isChecked (self)
- bool isEnabled (self)
- bool isIconVisibleInMenu (self)
- bool isSeparator (self)
- bool isVisible (self)
- QMenu menu (self)
- MenuRole menuRole (self)
- QWidget parentWidget (self)
- Priority priority (self)
- setActionGroup (self, QActionGroup)
- setAutoRepeat (self, bool)
- setCheckable (self, bool)
- setChecked (self, bool)
- setData (self, QVariant)
- setDisabled (self, bool)
- setEnabled (self, bool)
- setFont (self, QFont)
- setIcon (self, QIcon)
- setIconText (self, QString)
- setIconVisibleInMenu (self, bool)
- setMenu (self, QMenu)
- setMenuRole (self, MenuRole)
- setPriority (self, Priority)
- setSeparator (self, bool)
- setShortcut (self, QKeySequence)
- setShortcutContext (self, Qt.ShortcutContext)
- setShortcuts (self, list-of-QKeySequence)
- setShortcuts (self, QKeySequence.StandardKey)
- setSoftKeyRole (self, SoftKeyRole)
- setStatusTip (self, QString)
- setText (self, QString)
- setToolTip (self, QString)
- setVisible (self, bool)
- setWhatsThis (self, QString)
- QKeySequence shortcut (self)
- Qt.ShortcutContext shortcutContext (self)
- list-of-QKeySequence shortcuts (self)
- bool showStatusText (self, QWidget widget = None)
- SoftKeyRole softKeyRole (self)
- QString statusTip (self)
- QString text (self)
- toggle (self)
- QString toolTip (self)
- trigger (self)
- QString whatsThis (self)
Qt Signals
Detailed Description
Type Documentation
QAction.ActionEvent
QAction.MenuRole
QAction.Priority
QAction.SoftKeyRole
Method Documentation
QAction.__init__ (self, QObject)
The QObject argument, if not None, causes self to be owned by Qt instead of PyQt.
QAction.__init__ (self, QString, QObject)
The QObject argument, if not None, causes self to be owned by Qt instead of PyQt.
QAction.__init__ (self, QIcon, QString, QObject)
The QObject argument, if not None, causes self to be owned by Qt instead of PyQt.
QActionGroup QAction.actionGroup (self)
QAction.activate (self, ActionEvent)
list-of-QGraphicsWidget QAction.associatedGraphicsWidgets (self)
list-of-QWidget QAction.associatedWidgets (self)
bool QAction.autoRepeat (self)
QVariant QAction.data (self)
bool QAction.event (self, QEvent)
QFont QAction.font (self)
QAction.hover (self)
This method is also a Qt slot with the C++ signature void hover().
QIcon QAction.icon (self)
QString QAction.iconText (self)
bool QAction.isCheckable (self)
bool QAction.isChecked (self)
bool QAction.isEnabled (self)
bool QAction.isIconVisibleInMenu (self)
bool QAction.isSeparator (self)
bool QAction.isVisible (self)
QMenu QAction.menu (self)
MenuRole QAction.menuRole (self)
QWidget QAction.parentWidget (self)
Priority QAction.priority (self)
QAction.setActionGroup (self, QActionGroup)
QAction.setAutoRepeat (self, bool)
QAction.setCheckable (self, bool)
QAction.setChecked (self, bool)
This method is also a Qt slot with the C++ signature void setChecked(bool).
QAction.setData (self, QVariant)
QAction.setDisabled (self, bool)
This method is also a Qt slot with the C++ signature void setDisabled(bool).
QAction.setEnabled (self, bool)
This method is also a Qt slot with the C++ signature void setEnabled(bool).
QAction.setFont (self, QFont)
QAction.setIcon (self, QIcon)
QAction.setIconText (self, QString)
QAction.setIconVisibleInMenu (self, bool)
QAction.setMenu (self, QMenu)
QAction.setMenuRole (self, MenuRole)
QAction.setPriority (self, Priority)
QAction.setSeparator (self, bool)
QAction.setShortcut (self, QKeySequence)
QAction.setShortcuts (self, list-of-QKeySequence)
QAction.setSoftKeyRole (self, SoftKeyRole)
QAction.setStatusTip (self, QString)
QAction.setText (self, QString)
QAction.setToolTip (self, QString)
QAction.setVisible (self, bool)
This method is also a Qt slot with the C++ signature void setVisible(bool).
QAction.setWhatsThis (self, QString)
list-of-QKeySequence QAction.shortcuts (self)
bool QAction.showStatusText (self, QWidget widget = None)
SoftKeyRole QAction.softKeyRole (self)
QString QAction.statusTip (self)
QString QAction.text (self)
QAction.toggle (self)
This method is also a Qt slot with the C++ signature void toggle().
QString QAction.toolTip (self)
QAction.trigger (self)
This method is also a Qt slot with the C++ signature void trigger().
QString QAction.whatsThis (self)
Qt Signal Documentation
void changed ()
This is the default overload of this signal.
void hovered ()
This is the default overload of this signal.
void toggled (bool)
This is the default overload of this signal.
void triggered (bool = 0)
This is the default overload of this signal.