[Interest] Exception catching in event loop

Thiago Macieira thiago.macieira at intel.com
Thu May 2 00:03:36 CEST 2024


On Wednesday 1 May 2024 14:54:48 GMT-7 Turtle Creek Software wrote:
> To do that in Qt we wrap QApplication::notify in a try/catch.  It works

No, it doesn't work. It happens to work on those platforms by pure accident. 
Trying to catch in notify() is too late.

Catch those things before they reenter Qt code. Especially Qt code that was 
compiled with exceptions disabled, like QtWidgets.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20240501/fc17277b/attachment.bin>


More information about the Interest mailing list