How about QCoreApplication::aboutToQuit signal ?
How about QCoreApplication::aboutToQuit signal ?
I guess it mosly depends on whether you need the event loop during cleanup.
If you do, Lesiok's suggestion would give you that, if you don't, I'd also go for Wysota's suggestion.
Cheers,
_
Bookmarks