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

Alexandre Beraud aberaud at infflux.com
Tue Jun 7 11:21:31 CEST 2011


Hi,

I would embed the QMainWindow::centralWidget() rather than the 
QMainWindow itself.

Regards,

Alex


Le 07/06/2011 11:12, Emiliano Mennucci a écrit :
> 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?
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>


-- 
Alexandre BERAUD
Ingénieur Développement - INFFLUX
01 49 57 92 00




More information about the Qt-interest-old mailing list