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

void QMenuBar::clear (  ) 

Removes all the actions from the menu bar.

See also:

Definition at line 797 of file qmenubar.cpp.

References QWidget::actions(), QWidget::removeAction(), and QList< T >::size().

    QList<QAction*> acts = actions();
    for(int i = 0; i < acts.size(); i++)

Generated by  Doxygen 1.6.0   Back to index