Qt 6.11 is out! See what's new in the release
blog
Catching system shutdown
General and Desktop
3
Posts
2
Posters
3.6k
Views
1
Watching
-
Our app puts up a warning dialog when you close the main window, telling the user it is minimizing to the system tray. But I don't want to do this if the window is getting closed because the system is being shutdown. How can I catch the shutdown and not put up the warning? Unfortunately, there doesn't seem to be a system shutdown signal. I looked at QSession, but nothing jumps out.
-
If the user is closing the session, you should be able to do what's described in here.