[Development] Disabling exception support in QtCore?
thiago.macieira at intel.com
Thu Oct 10 17:58:37 CEST 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the Development