QMenuBar

Section: Misc. Reference Manual Pages (3qt)
Updated: 2 February 2007
Index Return to Main Contents
 

NAME

QMenuBar - Horizontal menu bar  

SYNOPSIS

#include <qmenubar.h>

Inherits QFrame and QMenuData.

 

Public Members


QMenuBar ( QWidget * parent = 0, const char * name = 0 )

~QMenuBar ()

virtual void show ()

virtual void hide ()

virtual int heightForWidth ( int max_width ) const

enum Separator { Never = 0, InWindowsStyle = 1 }

Separator separator () const (obsolete)

virtual void setSeparator ( Separator when ) (obsolete)

void setDefaultUp ( bool )

bool isDefaultUp () const
 

Signals


void activated ( int id )

void highlighted ( int id )
 

Important Inherited Members


int insertItem ( const QString & text, const QObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )

int insertItem ( const QIconSet & icon, const QString & text, const QObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )

int insertItem ( const QPixmap & pixmap, const QObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )

int insertItem ( const QIconSet & icon, const QPixmap & pixmap, const QObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )

int insertItem ( const QString & text, int id = -1, int index = -1 )

int insertItem ( const QIconSet & icon, const QString & text, int id = -1, int index = -1 )

int insertItem ( const QString & text, QPopupMenu * popup, int id = -1, int index = -1 )

int insertItem ( const QIconSet & icon, const QString & text, QPopupMenu * popup, int id = -1, int index = -1 )

int insertItem ( const QPixmap & pixmap, int id = -1, int index = -1 )

int insertItem ( const QIconSet & icon, const QPixmap & pixmap, int id = -1, int index = -1 )

int insertItem ( const QPixmap & pixmap, QPopupMenu * popup, int id = -1, int index = -1 )

int insertItem ( const QIconSet & icon, const QPixmap & pixmap, QPopupMenu * popup, int id = -1, int index = -1 )

int insertItem ( QWidget * widget, int id = -1, int index = -1 )

int insertItem ( const QIconSet & icon, QCustomMenuItem * custom, int id = -1, int index = -1 )

int insertItem ( QCustomMenuItem * custom, int id = -1, int index = -1 )

int insertSeparator ( int index = -1 )

void removeItem ( int id )

void clear ()

bool isItemEnabled ( int id ) const

void setItemEnabled ( int id, bool enable )

bool isItemVisible ( int id ) const

void setItemVisible ( int id, bool visible )
 

Properties


bool defaultUp - the popup orientation

Separator separator - in which cases a menubar sparator is drawn (obsolete)
 

Protected Members


virtual void drawContents ( QPainter * p )

virtual void menuContentsChanged ()

virtual void m