[Development] Why is QSignalSpy using Qt::DirectConnection?

Thiago Macieira thiago.macieira at intel.com
Sun Oct 26 19:21:24 CET 2014


On Sunday 26 October 2014 16:34:29 Roland Winklmeier wrote:
> The easiest fix would be to make QTestEventLoop::exitLoop() thread-safe
> by adding the if condition at the beginning of the method:
> 
> if (thread() != QThread::currentThread())
> {
>     QMetaObject::invokeMethod(this, "exitLoop", Qt::QueuedConnection);
>     return;
> }

Sounds good.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list