Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
On Windows, the following would implement such a function:
QList<QWidget*> zOrderedWindows()
{
QList<QWidget*> orderedWidgets;
if (!QApplication::topLevelWidgets().count())
return orderedWidgets;
HWND first = QApplication::topLevelWidgets().at(0)->winId();
HWND hwnd = first;
while (hwnd)
hwnd = GetNextWindow(first, GW_HWNDPREV);
while (hwnd)
return orderedWidgets;
}