0
votes
1answer
228 views

How can a Qt application be notified that the user's session is ending and provide it with opportunity to save its state before being terminated?

I am writing a Qt application and have run into the following problem: when the user logs out or attempts to shut down the machine, the application is instantly terminated without providing it any ...