[Qt-interest] All toolbars and dock widgets of a main window

Alexandre Beraud aberaud at infflux.com
Mon Mar 30 15:09:56 CEST 2009


Hi,

There are no such methods, but you can try this:
QList<QDockWidget *> docksList = 
yourMainWindow->findChildren<QDockWidget *>();

Regards,

Alex


Fabio Dago a écrit :
> Hi!
>
> Is there a way to get a list of all QToolBars and all QDockWidgets added 
> to a QMainWindow?
>
> I want to hide all these widgets when I show the window in fullscreen 
> mode, but inside my main window class I don't have a list of them.
>
> Thanks!
>
> Fabio.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>   


-- 
BERAUD Alexandre
Ingénieur Développement

Infflux - Informatique & Flux
Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
Mail: aberaud at infflux.com
Visitez notre site :  www.infflux.com





More information about the Qt-interest-old mailing list