On quinta-feira, 10 de outubro de 2013 14:53:50, Olivier Goffart wrote:
> The only places where exceptions are allowed are:
>  - Exceptions thrown by a slot are propagated to the signal connected with 
> direct connection
>  - Exceptions propagated through a call to invokeMethod are propagated from 
> the method to the call
>  - Exceptions thrown from QtConcurrent will be by re thrown when
> calling  the  QFuture API if the exception is a subclass of QException

Just adding one more thing:
 - despite the fact that the signal-slot mechanism propagates exceptions, 
*all* Qt signal emitters are noexcept, so throwing from a slot when called by 
a signal emitter inside Qt is undefined behaviour.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to