The QMenuBar class provides a horizontal menu bar. More...
#include <qmenubar.h>
Inherits QFrame and QMenuData.
It automatically sets its own geometry to the top of the parent widget and changes appropriately it when the parent widget is resized.
menu/menu.cpp is a typical example of QMenuBar and QPopupMenu use.
See also: QPopupMenu.
Examples: menu/menu.cpp
Creates a menu bar with a parent and a name.
Destroys the menu bar.
[virtual protected]
Called from QFrame::paintEvent().
Reimplemented from QFrame.
[virtual]
This function is used to adjust the menu bar's geometry to the
parent widget's. Note that this is not part of the public
interface - the function is public
only because
QObject::eventFilter() is.
Reimplemented from QObject.
[virtual protected]
For internal use only.
Reimplemented from QWidget.
[virtual]
Reimplements QWidget::hide() in order to deselect any selected item.
Reimplemented from QWidget.
[virtual protected]
Handles key press events for the menu bar.
Reimplemented from QWidget.
[virtual protected]
Recomputes the menu bar's display data according to the new contents.
You should never need to call this, it is called automatically by QMenuData whenever it needs to be called.
Reimplemented from QMenuData.
[virtual protected]
Recomputes the menu bar's display data according to the new state.
You should never need to call this, it is called automatically by QMenuData whenever it needs to be called.
Reimplemented from QMenuData.
[virtual protected]
Handles mouse move events for the menu bar.
Reimplemented from QWidget.
[virtual protected]
Handles mouse press events for the menu bar.
Reimplemented from QWidget.
[virtual protected]
Handles mouse release events for the menu bar.
Reimplemented from QWidget.
[virtual protected]
Handles resize events for the menu bar.
Reimplemented from QWidget.
[virtual]
Reimplements QWidget::show() in order to set up the correct keyboard accelerators and raise itself to the top of the widget stack.
Reimplemented from QWidget.
[virtual]
For internal use only.
Reimplemented from QMenuData.
This file is part of the Qt toolkit, copyright © 1995-96 Troll Tech, all rights reserved.
It was generated from the following files: