[Qt-interest] need help with qobject connect

Murphy, Sean M. sean.murphy at gd-ais.com
Mon Aug 10 23:36:57 CEST 2009


> >> I mean SLOTs called consistently in a queue order.
> >
> >As I said already, the order of this queue is undefined, meaning it
> >could potentially change depending on the phase of the moon.
> 
> Actually, it is defined. It's always the order of the connects.

Thiago, the Qt docs disagree with you, and agree with what Andreas meant.  From
  http://doc.qtsoftware.com/4.5/signalsandslots.html#signals

"If several slots are connected to one signal, the slots will be executed one after the other, in an arbitrary order, when the signal is emitted."

As Andreas said, ***RIGHT NOW*** they are executed in the order that they were connected, but you Trolls (are you still considered Trolls, btw?) don't guarantee that they will be in all versions of Qt.

Sean




More information about the Qt-interest-old mailing list