I would like to use a single instance of QMenuBar to ease integration with Mac OS X, however the documentation states
Note: QMainWindow takes ownership of
the menuBar pointer and deletes it at
the appropriate time.
How can I get all my QMainWindows to share a single QMenuBar? Or is the simple and unfortunate answer “you can’t”?
Sorry for simply quoting the manual, but this question is really already covered on it.
http://doc.qt.nokia.com/latest/qmainwindow.html#menuBar:
More information about QMenuBar on Mac OS X: