Как отлавливать исключения в Qt?

<code>try
{  // `count()` throws exception
  connect(thread, SIGNAL(started()), engine, SLOT(count()));  
}
catch(const X& e)
{}
</code>

Начиная с Qt-5, я получаю следующую ошибку:

Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must not let any exception whatsoever propagate through Qt code. If that is not possible, in Qt 5 you must at least re-implement QCoreApplication::notify() and catch all exceptions there.

Если я не могу поймать исключения обычным способом, как показано выше, то где мы должны их отлавливать?

Ответы на вопрос(3)

Ваш ответ на вопрос