This is how you add a File menu,
fileMenu = menuBar()->addMenu(tr("&File"));
This is how you add a File action,
menuBar()->addAction(fileAct);
where fileAct is a normal action.
However, this is strange behaviour.
Either you only add actions to the menubar and no menu, or you use a toolbar instead.
Bookmarks