1
有什麼方法可以知道inst1
或inst2
是否是下一代碼中插槽的觸發器?檢查哪個信號是信號的呼叫者
MyClass inst1 ,inst2;
connect (inst1, sigInst1(), this, mySlot());
connect (inst2, sigInst2(), this, mySlot());
void mySlot(){
// here I want to know if inst1 or inst2 got me into this slot.
}