Assume that i have two signals (void signal1()
and void signal2()
) and one slot (void slot()
).
Both signals are connected to the slot:
connect(this, &Classname::signal1, this, &Classname::slot);
connect(this, &Classname::signal2, this, &Classname::slot);
In implementation of the slot()
, is there a way to know which signal triggered this slot?