[Qt-interest] How can I remove/hide all toolbars from a QMainWindow?

Emiliano Mennucci ekumene at gmail.com
Tue Jun 7 11:12:34 CEST 2011


I have a third party QMainWindow and I need to embed it in my own
QMainWindow (i.e. use it as a normal widget). I know it's not a best
practise (to say the least) but I have no other way right now.

I need to hide the third-party window's statusbar, menubar and
toolbars. I was able to remove the statusbar (setStatusBar(0)) and the
menubar (setMenuBar(0)) but I cannot find a way to do the samething
with the toolbar area

Is there any way to hide/remove toolbars?



More information about the Qt-interest-old mailing list