The QPopupMenu class provides a popup menu widget. More...
#include <qpopmenu.h>
Inherits QMenuData and QTableView.
The popup widget is different from other widgets in the way it relates to the parent widget.
menu/menu.cpp is a typical example of QMenuBar and QPopupMenu use.
See also: QMenuBar.
Examples: menu/menu.cpp
[virtual]
Virtual function; notifies subclasses about an item that has been changed.
Reimplemented in QMenuBar.
Constructs a popup menu with a null parent and a widget name.
A popup menu must be a top level widget, i.e. parent must be 0. This argument is present merely for API uniformity.
Destroys the popup menu.
[virtual]
Reimplements QWidget::hide() for internal purposes.
Reimplemented from QWidget.
Returns whether display of check marks by the menu items is enabled.
See also: setCheckable() and QMenuData::setItemChecked().
[virtual protected]
Handles key press events for the popup menu.
Reimplemented from QWidget.
[virtual protected]
Handles mouse move events for the popup menu.
Reimplemented from QWidget.
[virtual protected]
Handles mouse press events for the popup menu.
Reimplemented from QWidget.
[virtual protected]
Handles mouse release events for the popup menu.
Reimplemented from QWidget.
[virtual protected]
Handles paint events for the popup menu.
Reimplemented from QWidget.
Opens the popup menu so that the item number indexAtPoint will be at the specified global position pos.
Enables or disables display of check marks by the menu items.
Notice that checking is always enabled when in windows-style.
See also: isCheckable() and QMenuData::setItemChecked().
[virtual]
Reimplements QWidget::setFont() to be able to refresh the popup menu when its font changes.
Reimplemented from QWidget.
[virtual]
Reimplements QWidget::show() for internal purposes.
Reimplemented from QWidget.
[virtual protected]
Handles timer events for the popup menu.
Reimplemented from QObject.
[virtual protected]
Returns the height of row row, in pixels.
This function is virtual and must be reimplemented by subclasses that have variable cell heights.
See also: setCellHeight(), cellWidth() and totalHeight().
Reimplemented in QListBox.
[virtual protected]
Returns the width of column col, in pixels.
This function is virtual and must be reimplemented by subclasses that have variable cell widths.
See also: setCellWidth(), cellHeight() and totalWidth().
[virtual protected]
This pure virtual function is called to paint the single cell at (row,col) using p, which is open when paintCell() is called and must remain open.
The coordinate system is translated such that the origin is at the top left corner of the cell to be painted; i.e. cell coordinates. Do not scale or shear the coordinate system (or if you do, restore the transformation matrix before you return).
By default, the painter is not clipped, for maximum efficiency. For safety, call setTableFlags(Tbl_clipCellPainting) to enable clipping.
See also: paintEvent(), QPainter() and setTableFlags().
Reimplemented in QListBox and QMultiLineEdit.
This file is part of the Qt toolkit, copyright © 1995-97 Troll Tech, all rights reserved.
It was generated from the following files: