[Qt-interest] Qt::AutoConnection definition change
Cristiano Leorato
crleor at gmail.com
Mon Mar 22 17:48:24 CET 2010
very clear answer
thank you very much!
Cristiano
On Mon, Mar 22, 2010 at 5:32 PM, Thiago Macieira <thiago at kde.org> wrote:
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100322/8e58cd2c/attachment.html
More information about the Qt-interest-old
mailing list