Q3PopupMenu Class Reference
The Q3PopupMenu is a thin compatibility wrapper around QMenu. More...
#include <Q3PopupMenu>
This class is part of the Qt 3 compatibility library. It is provided to keep old source code working. We strongly advise against using it in new code. See the Porting Guide for more information.
Inherits QMenu.
Writable Properties
- 4 writable properties inherited from QMenu
- 33 writable properties inherited from QWidget
- 1 writable property inherited from QObject
Read-Only Properties
- 20 read-only properties inherited from QWidget
Public Functions
- Q3PopupMenu ( QWidget * parent = 0, const char * name = 0 )
- int exec ()
- int exec ( const QPoint & pos, int indexAtPoint = 0 )
- 21 public functions inherited from QMenu
- 92 public functions inherited from QWidget
- 26 public functions inherited from QObject
- 10 public functions inherited from QPaintDevice
Public Slots
- 16 public slots inherited from QWidget
- 1 public slot inherited from QObject
Signals
- 3 signals inherited from QMenu
- 1 signal inherited from QObject
Static Public Members
- 1 static public member inherited from QMenu
- 4 static public members inherited from QWidget
- 4 static public members inherited from QObject
Protected Functions
- 42 protected functions inherited from QWidget
- 7 protected functions inherited from QObject
Detailed Description
The Q3PopupMenu is a thin compatibility wrapper around QMenu.
Use QMenu in new applications.
Member Function Documentation
Q3PopupMenu::Q3PopupMenu ( QWidget * parent = 0, const char * name = 0 )
Constructs a menu with the given parent and name.
int Q3PopupMenu::exec ()
Pops up the menu and returns the ID of the action that was selected.
See also QMenu::exec().
int Q3PopupMenu::exec ( const QPoint & pos, int indexAtPoint = 0 )
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
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().