[Qt-interest] Correct way of connecting to the QCoreApplication::aboutToQuit() signal ?

Julien Cugnière julien.cugniere at gmail.com
Mon Feb 8 21:11:28 CET 2010


2010/2/8 Thiago Macieira <thiago at kde.org>
> Em Segunda-feira 8. Fevereiro 2010, às 19.09.00, Julien Cugnière escreveu:
> > So, given that I don't know from which thread
> > this signal will be fired, do I need to connect to it using
> > Qt::DirectConnection, or Qt::BlockingQueuedConnection ?
>
> The signal will be fired from the main thread.

Ah, thank you ! That's the bit of information I was missing.

If this is guaranteed behavior, maybe it should be put in the
documentation, as I was afraid this signal might be emitted by some
background thread monitoring system events (can we propose
documentation improvements via Git ? :-). Or should I take for granted
that because the qApp object belongs to the main thread, all its
signals will be emitted from there, whatever the platform ?

--
Julien Cugnière




More information about the Qt-interest-old mailing list