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 reent
Our code has thousands of sanity checks, which give an error message with
file & line #, then throw an exception. The event loop swallows the
non-fatal ones so users can continue work.
To do that in Qt we wrap QApplication::notify in a try/catch. It works
fine in Qt 5, and also in Qt 6 built for