QMenu Class Reference
[QtGui module]
Inherits QWidget.
Methods
- __init__ (self, QWidget parent = None)
- __init__ (self, QString, QWidget parent = None)
- QAction actionAt (self, QPoint)
- actionEvent (self, QActionEvent)
- QRect actionGeometry (self, QAction)
- QAction activeAction (self)
- addAction (self, QAction)
- QAction addAction (self, QString)
- QAction addAction (self, QIcon, QString)
- QAction addAction (self, QString, QObject, SLOT()SLOT(), QKeySequence shortcut = 0)
- QAction addAction (self, QString, callable, QKeySequence shortcut = 0)
- QAction addAction (self, QIcon, QString, QObject, SLOT()SLOT(), QKeySequence shortcut = 0)
- QAction addAction (self, QIcon, QString, callable, QKeySequence shortcut = 0)
- QAction addMenu (self, QMenu)
- QMenu addMenu (self, QString)
- QMenu addMenu (self, QIcon, QString)
- QAction addSeparator (self)
- changeEvent (self, QEvent)
- clear (self)
- int columnCount (self)
- QAction defaultAction (self)
- enterEvent (self, QEvent)
- bool event (self, QEvent)
- QAction exec_ (self)
- QAction exec_ (self, QPoint, QAction action = None)
- bool focusNextPrevChild (self, bool)
- hideEvent (self, QHideEvent)
- hideTearOffMenu (self)
- QIcon icon (self)
- initStyleOption (self, QStyleOptionMenuItem, QAction)
- QAction insertMenu (self, QAction, QMenu)
- QAction insertSeparator (self, QAction)
- bool isEmpty (self)
- bool isTearOffEnabled (self)
- bool isTearOffMenuVisible (self)
- keyPressEvent (self, QKeyEvent)
- leaveEvent (self, QEvent)
- QAction menuAction (self)
- mouseMoveEvent (self, QMouseEvent)
- mousePressEvent (self, QMouseEvent)
- mouseReleaseEvent (self, QMouseEvent)
- paintEvent (self, QPaintEvent)
- popup (self, QPoint, QAction action = None)
- bool separatorsCollapsible (self)
- setActiveAction (self, QAction)
- setDefaultAction (self, QAction)
- setIcon (self, QIcon)
- setNoReplayFor (self, QWidget)
- setSeparatorsCollapsible (self, bool)
- setTearOffEnabled (self, bool)
- setTitle (self, QString)
- QSize sizeHint (self)
- timerEvent (self, QTimerEvent)
- QString title (self)
- wheelEvent (self, QWheelEvent)
Static Methods
- QAction exec_ (list-of-QAction, QPoint, QAction action = None)
- QAction exec_ (list-of-QAction, QPoint, QAction, QWidget)
Qt Signals
Detailed Description
Method Documentation
QMenu.__init__ (self, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QMenu.__init__ (self, QString, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QMenu.actionEvent (self, QActionEvent)
QRect QMenu.actionGeometry (self, QAction)
QAction QMenu.activeAction (self)
QMenu.addAction (self, QAction)
QAction QMenu.addAction (self, QString)
QAction QMenu.addAction (self, QIcon, QString)
QAction QMenu.addAction (self, QString, QObject, SLOT()SLOT(), QKeySequence shortcut = 0)
QAction QMenu.addAction (self, QString, callable, QKeySequence shortcut = 0)
QAction QMenu.addAction (self, QIcon, QString, QObject, SLOT()SLOT(), QKeySequence shortcut = 0)
QAction QMenu.addAction (self, QIcon, QString, callable, QKeySequence shortcut = 0)
QMenu QMenu.addMenu (self, QString)
QMenu QMenu.addMenu (self, QIcon, QString)
QAction QMenu.addSeparator (self)
QMenu.changeEvent (self, QEvent)
QMenu.clear (self)
int QMenu.columnCount (self)
QAction QMenu.defaultAction (self)
QMenu.enterEvent (self, QEvent)
bool QMenu.event (self, QEvent)
QAction QMenu.exec_ (self)
QAction QMenu.exec_ (list-of-QAction, QPoint, QAction action = None)
bool QMenu.focusNextPrevChild (self, bool)
QMenu.hideEvent (self, QHideEvent)
QMenu.hideTearOffMenu (self)
QIcon QMenu.icon (self)
QAction QMenu.insertSeparator (self, QAction)
bool QMenu.isEmpty (self)
bool QMenu.isTearOffEnabled (self)
bool QMenu.isTearOffMenuVisible (self)
QMenu.keyPressEvent (self, QKeyEvent)
QMenu.leaveEvent (self, QEvent)
QAction QMenu.menuAction (self)
QMenu.mouseMoveEvent (self, QMouseEvent)
QMenu.mousePressEvent (self, QMouseEvent)
QMenu.mouseReleaseEvent (self, QMouseEvent)
QMenu.paintEvent (self, QPaintEvent)
QMenu.popup (self, QPoint, QAction action = None)
bool QMenu.separatorsCollapsible (self)
QMenu.setActiveAction (self, QAction)
QMenu.setDefaultAction (self, QAction)
QMenu.setIcon (self, QIcon)
QMenu.setNoReplayFor (self, QWidget)
QMenu.setSeparatorsCollapsible (self, bool)
QMenu.setTearOffEnabled (self, bool)
QMenu.setTitle (self, QString)
QSize QMenu.sizeHint (self)
QMenu.timerEvent (self, QTimerEvent)
QString QMenu.title (self)
QMenu.wheelEvent (self, QWheelEvent)
Qt Signal Documentation
void aboutToHide ()
This is the default overload of this signal.
void aboutToShow ()
This is the default overload of this signal.
void hovered (QAction *)
This is the default overload of this signal.
void triggered (QAction *)
This is the default overload of this signal.