1、
a-QAxObject從QAxBase繼承來的信號,不能用最新版函數指針版connect,只能使用舊版的宏字符串版本connect。 b-舊版的宏字符串版本的connect關聯的槽函數,必須是"訪問修飾符+slots:"聲明的槽函數。 否則會報錯No Such slots。 我們知道,新版函數指針的版的connect,槽函數可以是普通的成員函數。
2、
非lambda方式關聯connect, 第五個參數 Qt::DirectConnection, The slot is executed in the signalling thread. 信號發出線程跟槽函數執行線程,屬於同一線程。 QObject * senderObj = sender(); 獲取不到信號發送對象。
非lambda方式關聯connect, 第五個參數Qt::QueuedConnection或Qt::BlockingQueuedConnection, The slot is executed in the receiver's thread.信號和槽函數不同線程。 sender()可以獲取到信號的發送對象。