The Q3PopupMenu class is a thin compatibility wrapper around QMenu. More...
#include <Q3PopupMenu>
This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See Porting to Qt 4 for more information.
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 ) |
The Q3PopupMenu class is a thin compatibility wrapper around QMenu.
Use QMenu in new applications. Note that the menu's actions must be Q3Actions.
Constructs a menu with the given parent and name.
Pops up the menu and returns the ID of the action that was selected.
See also QMenu::exec().
Pops up the menu at coordinate pos and returns the ID of the action that was selected.
If indexAtPoint is specified, the menu will pop up with the item at index indexAtPoint under the mouse cursor.
See also QMenu::exec().
Returns the width of the margin around the contents of the widget.
This function uses QWidget::getContentsMargins() to get the margin.
This function was introduced in Qt 4.2.
See also setMargin() and QWidget::getContentsMargins().
Sets the width of the margin around the contents of the widget to margin.
This function uses QWidget::setContentsMargins() to set the margin.
This function was introduced in Qt 4.2.
See also margin() and QWidget::setContentsMargins().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.