Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get list of opened windows in Qt

Tags:

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?

like image 611
BiTOk Avatar asked May 03 '13 18:05

BiTOk


1 Answers

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

like image 71
cmannett85 Avatar answered Oct 12 '22 12:10

cmannett85