The Q3PopupMenu class is a thin compatibility wrapper around QMenu . 更多...
| 头: | #include <Q3PopupMenu> |
| 继承: | 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 ) |
The Q3PopupMenu class is a thin compatibility wrapper around QMenu .
使用 QMenu in new applications. Note that the menu's actions must be Q3Action 。
Constructs a menu with the given parent and name .
Pops up the menu and returns the ID of the action that was selected.
另请参阅 QMenu::exec ().
Pops up the menu at coordinate pos and returns the ID of the action that was selected.
若 indexAtPoint is specified, the menu will pop up with the item at index indexAtPoint under the mouse cursor.
另请参阅 QMenu::exec ().
Returns the width of the margin around the contents of the widget.
此函数使用 QWidget::getContentsMargins () to get the margin.
该函数在 Qt 4.2 引入。
另请参阅 setMargin () 和 QWidget::getContentsMargins ().
Sets the width of the margin around the contents of the widget to margin .
此函数使用 QWidget::setContentsMargins () to set the margin.
该函数在 Qt 4.2 引入。
另请参阅 margin () 和 QWidget::setContentsMargins ().