Subclass QApplication to override member function notify() so that it catches exceptions. Present a QMessageBox displaying any thrown QString.