Quote Originally Posted by d_stranz View Post
Great! Now start practicing defensive programming and debug your programs before you release them so you will never have a need for this kind of message.

If you want to make this kind of signal handler really useful instead of just displaying a message like "Oops, something broke and there is nothing you can do to fix it", you would implement something in your QApplication class that could save any open files and basically try to do whatever is possible to clean up what the user was doing and leave it in a recoverable state.

Just displaying a message and then crashing out isn't much different from simply crashing out as far as the user is concerned if their work is trashed and they lose it all.
What a great idea! You are right, it is much better when the app saves your progress automatically If it crashes. Thank you for reminding me of this!