Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QAction * QMenuBar::addMenu ( QMenu menu  ) 

Appends menu to the menu bar. Returns the menu's menuAction().

The returned QAction object can be used to hide the corresponding menu.
See also:
QWidget::addAction() QMenu::menuAction()

Definition at line 833 of file qmenubar.cpp.

References addAction(), and QMenu::menuAction().

Referenced by MainWindow::createMenu(), Dialog::createMenu(), ImageViewer::createMenus(), MainWindow::createMenus(), MainWindow::setupFileMenu(), and TextEdit::TextEdit().

    QAction *action = menu->menuAction();
    return action;

Generated by  Doxygen 1.6.0   Back to index