Re: 2 (or more) slots to 1 signal



Havoc Pennington wrote:

I've found that if i have 2 or more slots connected to one signal then
if the event happen all slots are called. But i wounder what is the
order they are called. Is it _always_ the order the slots were
connected, ie:

sig0 -> connect with slot0
sig0 -> connect with slot1
sig0 -> connect with slot2...

So, the call order is: slot0, slot1, slot2... ?? Or is it mixed (random
calls)??


It's in the order of connection, but programs that rely on this tend
to be a bit unmaintainable.

Right. I thought about this solution but now i think that there would be
to much dependences around this callbacks.

But thank You for the answer!

-- 
Maciej Hrebien





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]