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()それを提供できます、docs .
QApplication::topLevelWidgets()