[Qt-interest] QWaitCondition prevents signals from calling slots

Lucas Artias lucas.artias at gmail.com
Thu May 21 20:19:48 CEST 2009


On Tue, May 19, 2009 at 11:51 PM, Jonathan Wong <jhannwong at gmail.com> wrote:

> Actually, further tests showed that a thread can both wait on a
> QWaitCondition and wait for
> incoming signals to its slots. But this thread must be a different one from
> the thread emitting
> the signals.
>
> I couldn't find any online docs explaining the relations between threads
> and signals. Couldn't
> find the word "thread" here:
> http://doc.trolltech.com/4.5/signalsandslots.html
>

The documentation you want is at
http://doc.trolltech.com/4.5/qt.html#ConnectionType-enum. This describes the
different behaviors available when signals and threads interact.

The default connection type is Qt:Autoconnect which behaves differently
based on if you are send a signal to your own thread or to a different
thread.

Lucas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090521/26cb3992/attachment.html 


More information about the Qt-interest-old mailing list