My application can launch multiple instances of QMainWindow
, and I would like each instance to have the same menu. If there are no instances initialized but the application is still running (possible on Mac OS X), I would still like the same menu to be displayed but with a few items disabled.
How would I go about doing this? Would it work to subclass QMenu
or QMenuBar
, turn the subclass into a singleton, and pass that to each QMainWindow
?