View Single Post
slobodsky's Avatar
Posts: 63 | Thanked: 41 times | Joined on Feb 2010 @ Moscow
#3
Originally Posted by krk969 View Post
*EDIT* just ensure you do that inside a QMainWindow and not a QWidget.
I'm using QMenuBar in an application without QMainWindow at all:
in QWidget's subclass constructor ...
QMenuBar* Menu = new QMenuBar( this );
... Create your QAction ...
Menu->addAction( Action );
... Create and add other actions. It works fine.
__________________
Sorry for bad English. If you can point out mistakes in this post, send me a private message.
 

The Following User Says Thank You to slobodsky For This Useful Post: