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

R. Reucher rene.reucher at batcom-it.net
Sun Jan 11 15:04:55 CET 2009


Hi list,

I'd like to control the visibiliry of the menu bar of a QMainWindow on demand, 
but don't seem to find an easy way to do this.

I tried to hide() / show() the menuBar() as in

myMainWindow->menuBar()->hide();

but that doesn't work.

Using

myMainWindow->menuBar()->setVisible(false);

or

myMainWindow->setMaximumHeight(0);

also doen't change anything.

Am I missing something? Thanks for any replies in advance!

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

Frisbeetarianism, n.:
	The belief that when you die, your soul goes up the on roof and
gets stuck.




More information about the Qt-interest-old mailing list