Q3PopupMenu Class Reference

The Q3PopupMenu class is a thin compatibility wrapper around QMenu.

  1. #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.

Detailed Description

The Q3PopupMenu class is a thin compatibility wrapper around QMenu.

Use QMenu in new applications. Note that the menu's actions must be Q3Actions.

Public Functions

Toggle details Q3PopupMenu

Q3PopupMenuQ3PopupMenu ( QWidget *parent=0 , const char *name=0 ...) ( QWidget *parent=0 , const char *name=0 )

Constructs a menu with the given parent and name.

Look up this member in the source code.

Toggle details int Q3PopupMenu

execexec () ()

Pops up the menu and returns the ID of the action that was selected.

See also QMenu::exec().

Look up this member in the source code.

Toggle details int Q3PopupMenu

execexec ( const QPoint &pos , int indexAtPoint=0 ) ( const QPoint &pos , int indexAtPoint=0 )

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().

Look up this member in the source code.

Toggle details int Q3PopupMenu

marginmargin () ()const

Returns the width of the margin around the contents of the widget.

This function uses QWidget::getContentsMargins() to get the margin.

See also setMargin() and QWidget::getContentsMargins().

Look up this member in the source code.

Toggle details void Q3PopupMenu

setMarginsetMargin ( int margin ) ( int margin )

Sets the width of the margin around the contents of the widget to margin.

This function uses QWidget::setContentsMargins() to set the margin.

See also margin() and QWidget::setContentsMargins().

Look up this member in the source code.

    Notes provided by the Qt Community

    No notes