PDA

View Full Version : Is it possible to catch app crash in a widget?



zgulser
26th March 2014, 08:10
Hello,

As far as I searched on the web, I couldn't find a method(excluding using third parties) to catch application crash in a specific widget. For example, when I close the widget, I could catch it in QWidget::closeEvent(...) callback. I wonder is there any method like QWidget::closeEvent(...) or any other way to catch application crash?

Or similarly, is there any way to catch app close if the app is closed from task manager?

Thanks in advance...

wysota
26th March 2014, 08:46
You can intercept the SIGSEGV C signal using the signal() call or its equivalent.