Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在我的 qt 应用程序中处理 WM_QUERYENDSESSION。由于 WM_QUERYENDSESSION 只接收 QApplication 所以我想获取我的应用程序的所有打开窗口的列表来决定 winEventFilter 结果。我怎么才能得到它?
QApplication::topLevelWidgets()可以提供,文档。
QApplication::topLevelWidgets()