views:

588

answers:

1

Does QThread::wait() return (i.e., unblocks execution) after calling all the slots that were associated with QThread::finished() signal?

Thanks in advance.

+2  A: 

No, it may return before, during or after a slot associated with signal finished() is being executed.

This depends on the type of signal-slot connection, read about queued connections and direct connections here: http://doc.trolltech.com/4.5/threads.html#signals-and-slots-across-threads

drhirsch