PDA

View Full Version : Qt slots sender pointer



bunjee
18th January 2009, 13:38
Hey there,

If I have multiple objects connected to a single slot,
when receiving a signal and inside the slot function, is it possible to know which QObject sent it without passing the QObject pointer to the signal ?

Thanks.

wysota
18th January 2009, 13:45
Take a look at QObject::sender().