qt4qt-signals

How to get sender widget with a signal/slot mechanism?


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


Solution

  • QObject::sender() will do the job.