read the documentation of QMainWindow, find a method that has something to do with QMenuBar and try to do something with that method
read the documentation of QMainWindow, find a method that has something to do with QMenuBar and try to do something with that method
menuBar() function returns menubar in that add menus u need
QMenu filemenu;
filemenu=menuBar().addMenu(tr("file"));
filemenu.addAction(newAct); newAct ic object of QAction
Bookmarks