[Qt-interest] Toggle visibility of a QMainWindow's menu bar?
R. Reucher
rene.reucher at batcom-it.net
Sun Jan 11 17:07:49 CET 2009
On Sun January 11 2009 17:01:19 R. Reucher wrote:
> > 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...
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!
--
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/
Who needs friends when you can sit alone in your room and drink?
More information about the Qt-interest-old
mailing list