[Development] Why is QSignalSpy using Qt::DirectConnection?
Roland Winklmeier
roland.m.winklmeier at gmail.com
Fri Oct 24 19:06:39 CEST 2014
>
> QSignalSpy::wait() isn't thread-safe because it's using QTestEventLoop
> instead
> of a regular QEventLoop. That former does use a timer and, unlike the
> latter,
> you can't stop the loop from outside the loop's own thread.
>
That was indeed the origin of the warnings. They appeared after introducing
lines with QSignalSpy::wait().
I suspected a bug in Qt, because my derived QObject did not start any
timers and was actually pretty empty. It has only 2 dummy methods which
trigger two different signals. I'll have a look QTestEventLoop then.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20141024/d29455d5/attachment.html>
More information about the Development
mailing list