[Qt-interest] Toggle visibility of a QMainWindow's menu bar?

R. Reucher rene.reucher at batcom-it.net
Sun Jan 11 17:53:42 CET 2009


On Sun January 11 2009 17:07:49 R. Reucher wrote:
> > When I try to hide() or show() the menu bar, the main window definitely
> > has the menu bar already setup. But thanks for your info on this. I'll
> > try to do it this way...
>
> Yes, it really works with hide() and show()! I think I found the reason in
> my code why it didn't in the first place - thanks again!
After some tests I'd now rather say "it _basically_ works", because hide()'ing 
the menuBar() pops up another issue: all menu short cuts seem to be disabled 
while the menuBar() is hidden.

Am I still missing something or is there an easy solution to this?

Thansk, René
-- 
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/

The reason it's called "Grape Nuts" is that it contains "dextrose",
which is also sometimes called "grape sugar", and also because "Grape
Nuts" is catchier, in terms of marketing, than "A Cross Between Gerbil
Food and Gravel", which is what it tastes like.
		-- Dave Barry, "Tips for Writer's"




More information about the Qt-interest-old mailing list