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

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


On Sun January 11 2009 16:57:04 Andreas Diehl wrote:
> Oh sorry, that was a mistake. I forgot to change the topic name. Damn
> copy&paste ...
LOL, no problem :)!

> But to your problem with the QMenubar I can tell you, that I've tested it
> (with Qt 4.4.2) and menuBar()->hide() worked as well as menuBar()->show().
> I tried it wihtin my QMainWindow class itself using
>     this->menuBar()->hide();
> so perhaps it doesn't work from outside or your window doesn't have any
> menubar at the point you want to hide it?
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...

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

Real programmers don't write in FORTRAN.  FORTRAN is for pipe stress
freaks and crystallography weenies.  FORTRAN is for wimp engineers who
wear white socks.




More information about the Qt-interest-old mailing list