Signal execution order with Qt::QueuedConnection

前端 未结 2 669
半阙折子戏
半阙折子戏 2021-01-12 01:36

I have two signals A and B emitted one after another from an object in thread X, and the two connected slots are in the Main thread. The connection is QueuedConnection (due

2条回答
  •  佛祖请我去吃肉
    2021-01-12 02:32

    According to current QT sources (5.*) they will be dispatched in sequence they were emitted using FIFO algorithm. But as stated in comment there is nothing in documentation which specifies this order so I wouldn't suggest to relay on that behaviour.

提交回复
热议问题