[Development] Disabling exception support in QtCore?

Thiago Macieira thiago.macieira at intel.com
Tue Oct 1 23:23:18 CEST 2013


On terça-feira, 1 de outubro de 2013 20:00:56, Knoll Lars wrote:
> Yes, signal/slot connections between user code should IMO still be able to
> pass through exceptions. I am afraid removing that will break code that's
> out there.

This is already forbidden since 5.0.

You can throw from your slots, if you want. If you call them directly, you're 
responsible for catching the exception.

However, it's undefined behaviour if you let the exception go back to QtCore 
code. The *best* you can hope for is that std::terminate is called.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131001/ef684d9b/attachment.sig>


More information about the Development mailing list