Order of slots called on QObject

前端 未结 4 797
囚心锁ツ
囚心锁ツ 2020-12-15 03:36

I have a QObject that has multiple slots connected to one of its signals. Is there an order in which of each of these slots are called when the signal is emitted?

4条回答
  •  情书的邮戳
    2020-12-15 04:24

    According to Qt documentation:

    If several slots are connected to one signal, the slots will be executed one after the other, in the order they have been connected, when the signal is emitted.

    http://qt-project.org/doc/qt-4.8/signalsandslots.html

提交回复
热议问题