I'm running a QCoreApplication as a TCP/IP server. I've implemented a signal handler to get SIGINT and SIGTERM but I'm not getting notification when a user restarts or shuts down Windows (XP).

It works fine when the application receives a shutdown command from a TPC/IP client.

But I need to save files when the user shuts down Windows. How can I do this?

I have implemented the aboutToQuit() signal, but this doesn't seem to get called either.

Thanks