BiTOk
BiTOk

Reputation: 726

How to get list of opened windows in Qt

I need to handle WM_QUERYENDSESSION in my qt application. As WM_QUERYENDSESSION recieve only QApplication so I want to get list of all opened windows of my application to decide winEventFilter result. How can I get it?

Upvotes: 6

Views: 4621

Answers (1)

cmannett85
cmannett85

Reputation: 22376

QApplication::topLevelWidgets() can provide that, docs.

Upvotes: 7

Related Questions