Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

Q3PopupMenu Class Reference
[Qt3Support module]

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.

Public Functions

Additional Inherited Members


Detailed Description

The Q3PopupMenu class 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().


Copyright © 2005 Trolltech Trademarks
Qt 4.1.0
Hosted by uCoz