[Qt-interest] Toolbars on Mac and the title bar context menu (corrected)
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Wed Aug 19 06:57:56 CEST 2009
Hi Everybody,
I have an application with a QMainWindow derived main window. It has two toolbars - only one is shown at any time, depending on the context. When the context changes, the toolbars are switched, and the hidden toolbar is also made disabled.
I accidently right-clicked on the title bar of the application and it showed a popup menu containing two entries both with text "toolbar" and one has a check mark. I was amazed to find that clicking on the menu entry that is not checked, shows the hidden toolbar - and makes it enabled!
How do I stop the context menu from appearing? None of the window attribute or type enums seem appropriate.
Failing that, how can I change the text displayed for each toolbar? I have changed the Window Title of each toolbar from the default, but that doesn't change the text in the title bar context menu. [Correction - my mistake - the items do refelct the Window Title].
Thanks in advance,
Tony.
More information about the Qt-interest-old
mailing list