tags:

views:

24

answers:

2

It's possible to bind more than one signal to one slot (isn't?). So, is there a way to understand which widget sends the signal? I'm looking for something like sender argument of events in .NET

+2  A: 

Yes, you can connect multiple signals to one slot. In this case you would use QSignalMapper to differentiate the sources of the signals. This solution is limited to parameterless signals. You can see an example here.

Arnold Spence
+1  A: 

QObject::sender will do the job.

Idan K