[Qt-interest] Qt::AutoConnection definition change

Arnold Krille arnold at arnoldarts.de
Mon Mar 22 17:09:33 CET 2010


On Monday 22 March 2010 16:49:32 Cristiano Leorato wrote:
> Beware that, in Qt documentation, the "Signals and Slots Across Threads"
> section has changed as follows:
> 
> In Qt 4.4.1:
> "With auto connections (the default), the behavior is the same as with
> direct connections if the signal is emitted in the thread where the
>  receiver lives; otherwise, the behavior is that of a queued connection."
> 
> In Qt 4.6.2:
> "Auto Connection (default) The behavior is the same as the Direct
> Connection, if the emitter and receiver are in the same thread. The
>  behavior is the same as the Queued Connection, if the emitter and receiver
>  are in different threads."
> 
> What is the reason of this documentation change?

Nothing has changed.
If sender and receiver are in the same thread, the connection is a direct 
connection, that is slots are executed before the call to the signal returns. 
Otherwise the connection is queued, that is the calling of the slot is 
converted into an event and delivered in the receivers event-queue.

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100322/9cb06062/attachment.bin 


More information about the Qt-interest-old mailing list