Reputation: 18151
How can I iterate over all top-level windows (i.e. widgets which have parent==0) in my Qt4 application?
parent==0
(Both C++ and Python examples are acceptable.)
Upvotes: 0
Views: 1406
Reputation: 22346
Use QApplication::topLevelWidgets(). Docs here.
QApplication::topLevelWidgets()
Upvotes: 2