QMainWindow Context Menu
-
I am using QMainWindow as ym to implement standard application window and I am using toolbars and dock widgets.
I want the Toolbars and Widgets to be showable by the users preferences. I know that QMainWindow creates a context menu for handling this behaviour. However is there any way to use this context menu in other sources (for exampe to be added under a View menu into the menu bar)? I do not want to implent the whole code to show and hide widgets again in the menubar while it is available elsewhere. -
Mmmm...Thank you very much. I'll have a check...
-
Is "QMainWindow::createPopupMenu() ":http://doc.qt.nokia.com/stable/qmainwindow.html#createPopupMenu what you need?
-
[quote author="Volker" date="1295301672"]Is "QMainWindow::createPopupMenu() ":http://doc.qt.nokia.com/stable/qmainwindow.html#createPopupMenu what you need?[/quote]
Yep... Thanks Volker.... I didn't see it.