[Interest] z-order for Qt's signals and slots
Andre Somers
andre at familiesomers.nl
Wed Nov 23 07:58:19 CET 2011
Op 23-11-2011 6:21, Sathishkumar Duraisamy schreef:
> Hi all,
>
> 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.
That is no longer true. It is now documented that slots will be called
in the order they are connected.
> Why can't we have z-order for signals and slots, taking control for of
> order the slots will be called. For some peculiar situation, that the
> programmer feels it would be best if it is called the slots after
> finishing all other slots. Or is there way to achieve the same?
As Bo sais: an API for that would be annoying at best, for something you
need only rarely. Why not create more than one signal that you emit in
order, or just make the object doing the processing emit a signal
itself, and connect to that for your next step processing.
André
More information about the Interest
mailing list