[Interest] Survey: do you override QCoreApplication::notify? Why?

Boudewijn Rempt boud at valdyas.org
Thu Apr 16 12:35:36 CEST 2015


On Wed, 15 Apr 2015, Thiago Macieira wrote:

> Hello
>
> We're running into problems with QCoreApplication::notify() and auxiliary
> threads in Qt. Details can be found in [1] and [2].
>
> As part of trying to design the solution, I'd like to know what people
> override QCoreApplication::notify() for.

We do in Calligra and Krita.
>
> So, if you do override, do you:
> 1) use it to log exceptions that were caught?

Yes

> 2) use it to catch exceptions and continue execution?
>     or use it to catch and abort?

We don't continue after an exception, but catch, log and abort.

> 3) log/profile/debug events being delivered?

No

> 4) filter events being delivered (remove from queue / compress)?

No

> 5) insert events somehow

No

> 6) something else (please explain)
>
> If you're doing #3, have you tried GammaRay?

> Is that notify() enabled for
> production builds?
>
> And additional question: do you need this for the main thread only, for
> auxiliary threads only or for all threads?

For all threads.

>
> [1] http://lists.qt-project.org/pipermail/development/2015-April/021053.html
> [2] https://codereview.qt-project.org/110325
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
>



More information about the Interest mailing list