[Qt-interest] [Interest] z-order for Qt's signals and slots
Arnold Krille
arnold at arnoldarts.de
Wed Nov 23 16:23:45 CET 2011
On Wednesday 23 November 2011 12:52:35 Giuseppe D'Angelo wrote:
> On 23 November 2011 05:21, Sathishkumar Duraisamy
> <bewithsathish at gmail.com> wrote:
> > By definition, the order by which the signals and slots is called is
> > undefined but for each signals and slots connection, slots will be
> > called for its signals.
> For the sake of the argument, that's not completely true -- slots are
> guaranteed to be called in the order they have been connected to the
> signal.
No, they are _not_ guaranteed to be called in order. The docs explicitly state
that currently the order called is the order connected, but also states that
this can change anytime if a "better" algorithm is found.
Also its only the case for direct connections.
Have fun,
Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111123/cd3bc033/attachment.bin
More information about the Qt-interest-old
mailing list