//! [0] menubar->addMenu(fileMenu); //! [0] //! [1] QMenuBar *menuBar = new QMenuBar(0); //! [1]