1

Related to Qt: Do events get processed in order?

Do Qt::QueuedConnection signals always get invoked in order?

So:

void A::func()
{
    emit first_signal();
    emit second_signal();
}

If these are both connected by Qt::QueuedConnection to slots will they always be invoked in the order first_signal() then second_signal()?

Community
  • 1
  • 1
Rob
  • 335
  • 8
  • 23

2 Answers2

2

Given the fact that bug(s) regarding the event prioritization are still being fixed very recently (target version 4.8.0), better don't rely on it. The observation that docs avoid any bold statements most probably means that the devs are simply not so sure.

Pavel Zdenek
  • 7,146
  • 1
  • 23
  • 38
1

If the documentation does not state it, you should rather not assume it.

Stefan Majewsky
  • 5,427
  • 2
  • 28
  • 51
  • Indeed so; but I was wondering if it was documented elsewhere that I have - until now - missed. – Rob Aug 15 '12 at 12:31