Hi, A window is a top level window if it has no parent, correct? Code and comments in qwindow.cpp also confirm that.
With that in mind, it seems reasonable that QGuiApplication::topLevelWindows() should return a list of QWindows with parent()==0. However, the returned list contains all QWindows created, including the ones that don't respect this condition. So, it seems we need to either adjust QGuiApplication::topLevelWindows() or control which windows are added to QGuiApplicationPrivate::window_list - currently, all windows are prepended to this list in QWindow's ctors. Also, would it be useful to have QGuiApplication::allWindows()? Cheers, Anselmo -- Anselmo L. S. Melo openBossa / INdT http://www.indt.org
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
