[Qt-interest] Qt::AutoConnection definition change
Thiago Macieira
thiago at kde.org
Mon Mar 22 17:32:58 CET 2010
Em Segunda-feira 22 Março 2010, às 16:49:32, Cristiano Leorato escreveu:
> 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?
I think the change is wrong.
The auto connection decays to queued if the target slot is in a different
thread, direct otherwise. It doesn't depend at all on the sender object. It
depends only on the current thread (the emission thread) and the receiver's
thread.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100322/72ce6301/attachment.bin
More information about the Qt-interest-old
mailing list