
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQ3PopupMenu class is a thin compatibility wrapper aroundQMenu.More...
| Header: | #include <Q3PopupMenu> |
| Inherits: | QMenu |
| Q3PopupMenu(QWidget * parent = 0, const char * name = 0) | |
| int | exec() |
| int | exec(const QPoint & pos, int indexAtPoint = 0) |
| int | margin() const |
| void | setMargin(int margin) |
TheQ3PopupMenu class is a thin compatibility wrapper aroundQMenu.
UseQMenu in new applications. Note that the menu's actions must beQ3Actions.
Constructs a menu with the givenparent andname.
Pops up the menu and returns the ID of the action that was selected.
See alsoQMenu::exec().
Pops up the menu at coordinatepos and returns the ID of the action that was selected.
IfindexAtPoint is specified, the menu will pop up with the item at indexindexAtPoint under the mouse cursor.
See alsoQMenu::exec().
Returns the width of the margin around the contents of the widget.
This function usesQWidget::getContentsMargins() to get the margin.
This function was introduced in Qt 4.2.
See alsosetMargin() andQWidget::getContentsMargins().
Sets the width of the margin around the contents of the widget tomargin.
This function usesQWidget::setContentsMargins() to set the margin.
This function was introduced in Qt 4.2.
See alsomargin() andQWidget::setContentsMargins().
© 2016 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 theGNU 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.