【QT】多個槽函數綁定同一個訊號的觸發順序
一、Qt 3.0(包含3.0) – Qt 4.5(包含4.5)版本之前
「多個槽函數綁定同一個訊號是無序調用」。
官方文檔是這樣描述的:
If a signal is connected to several slots, the slots are activated in an arbitrary order when the signal is emitted.
如果訊號連接到多個槽函數,則在發出訊號時會以任意順序調用槽函數。
文檔出處在:
//qt.developpez.com/doc/3.0/qobject/#connect
//qt.developpez.com/doc/4.5/qobject/#connect
二、Qt 4.6(包含4.6)版本之後
「多個槽函數綁定同一個訊號是順序調用」。
官方文檔是這樣描述的:
If a signal is connected to several slots, the slots are activated in the same order as the order the connection was made, when the signal is emitted.
如果將訊號連接到多個槽函數,則在發出訊號時將按照與連接順序相同的順序調用槽函數。
文檔出處在:
//doc.qt.io/archives/4.6/qobject.html#connect
//doc.qt.io/qt-5/qobject.html#connect-2

