Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | Friends

QMenuBar Class Reference

Search for all occurrences

Detailed Description

Definition at line 62 of file qmenubar.h.

#include <qmenubar.h>

Inheritance diagram for QMenuBar:
Inheritance graph
[legend]

List of all members.

Public Slots

virtual void  setVisible (bool visible)

Signals

void  triggered (QAction *action)
void  hovered (QAction *action)

Public Member Functions

  QMenuBar (QWidget *parent=0)
  ~QMenuBar ()
QAction addAction (const QString &text)
QAction addAction (const QString &text, const QObject *receiver, const char *member)
QAction addMenu (QMenu *menu)
QMenu addMenu (const QString &title)
QMenu addMenu (const QIcon &icon, const QString &title)
QAction addSeparator ()
QAction insertSeparator (QAction *before)
QAction insertMenu (QAction *before, QMenu *menu)
void  clear ()
QAction activeAction () const
void  setActiveAction (QAction *action)
void  setDefaultUp (bool)
bool  isDefaultUp () const
QSize  sizeHint () const
QSize  minimumSizeHint () const
int  heightForWidth (int) const
QRect  actionGeometry (QAction *) const
QAction actionAt (const QPoint &) const
void  setCornerWidget (QWidget *w, Qt::Corner corner=Qt::TopRightCorner)
QWidget cornerWidget (Qt::Corner corner=Qt::TopRightCorner) const
bool  isNativeMenuBar () const
void  setNativeMenuBar (bool nativeMenuBar)

Protected Member Functions

void  changeEvent (QEvent *)
void  keyPressEvent (QKeyEvent *)
void  mouseReleaseEvent (QMouseEvent *)
void  mousePressEvent (QMouseEvent *)
void  mouseMoveEvent (QMouseEvent *)
void  leaveEvent (QEvent *)
void  paintEvent (QPaintEvent *)
void  resizeEvent (QResizeEvent *)
void  actionEvent (QActionEvent *)
void  focusOutEvent (QFocusEvent *)
void  focusInEvent (QFocusEvent *)
void  timerEvent (QTimerEvent *)
bool  eventFilter (QObject *, QEvent *)
bool  event (QEvent *)
void  initStyleOption (QStyleOptionMenuItem *option, const QAction *action) const

Properties

bool  defaultUp
bool  nativeMenuBar

Friends

class  QMenuPrivate
class  QWindowsStyle

Constructor & Destructor Documentation

QMenuBar ( QWidget parent = 0 ) [explicit]
~QMenuBar ( )

Member Function Documentation

QAction* addAction ( const QString text )
QAction* addAction ( const QString text,
const QObject receiver,
const char *  member 
)
QAction* addMenu ( QMenu menu )
QMenu* addMenu ( const QString title )
QMenu* addMenu ( const QIcon icon,
const QString title 
)
QAction* addSeparator ( )
QAction* insertSeparator ( QAction before )
QAction* insertMenu ( QAction before,
QMenu menu 
)
void clear ( )
QAction* activeAction ( ) const
void setActiveAction ( QAction action )
void setDefaultUp ( bool  )
bool isDefaultUp ( ) const
QSize sizeHint ( ) const [virtual]

Reimplemented from QWidget.

QSize minimumSizeHint ( ) const [virtual]

Reimplemented from QWidget.

int heightForWidth ( int  ) const [virtual]

Reimplemented from QWidget.

QRect actionGeometry ( QAction ) const
QAction* actionAt ( const QPoint ) const
void setCornerWidget ( QWidget w,
Qt::Corner  corner = Qt::TopRightCorner 
)
QWidget* cornerWidget ( Qt::Corner  corner = Qt::TopRightCorner ) const
bool isNativeMenuBar ( ) const
void setNativeMenuBar ( bool  nativeMenuBar )
virtual void setVisible ( bool  visible ) [virtual, slot]

Reimplemented from QWidget.

void triggered ( QAction action ) [signal]
void hovered ( QAction action ) [signal]
void changeEvent ( QEvent ) [protected, virtual]

Reimplemented from QWidget.

void keyPressEvent ( QKeyEvent ) [protected, virtual]

Reimplemented from QWidget.

void mouseReleaseEvent ( QMouseEvent ) [protected, virtual]

Reimplemented from QWidget.

void mousePressEvent ( QMouseEvent ) [protected, virtual]

Reimplemented from QWidget.

void mouseMoveEvent ( QMouseEvent ) [protected, virtual]

Reimplemented from QWidget.

void leaveEvent ( QEvent ) [protected, virtual]

Reimplemented from QWidget.

void paintEvent ( QPaintEvent ) [protected, virtual]

Reimplemented from QWidget.

void resizeEvent ( QResizeEvent ) [protected, virtual]

Reimplemented from QWidget.

void actionEvent ( QActionEvent ) [protected, virtual]

Reimplemented from QWidget.

void focusOutEvent ( QFocusEvent ) [protected, virtual]

Reimplemented from QWidget.

void focusInEvent ( QFocusEvent ) [protected, virtual]

Reimplemented from QWidget.

void timerEvent ( QTimerEvent ) [protected, virtual]

Reimplemented from QObject.

bool eventFilter ( QObject ,
QEvent  
) [protected, virtual]

Reimplemented from QObject.

bool event ( QEvent ) [protected, virtual]

Reimplemented from QWidget.

void initStyleOption ( QStyleOptionMenuItem option,
const QAction action 
) const [protected]

Friends And Related Function Documentation

friend class QMenuPrivate [friend]

Definition at line 351 of file qmenubar.h.

friend class QWindowsStyle [friend]

Definition at line 352 of file qmenubar.h.


Property Documentation

bool defaultUp [read, write]

Definition at line 66 of file qmenubar.h.

bool nativeMenuBar [read, write]

Definition at line 67 of file qmenubar.h.


The documentation for this class was generated from the following file:

QMenuBar QMenuBar QMenuBar QMenuBar QMenuBar QMenuBar QMenuBar QMenuBar QMenuBar QMenuBar
QMenuBar QMenuBar QMenuBar QMenuBar QMenuBar QMenuBar QMenuBar QMenuBar QMenuBar QMenuBar