[Qt-interest] retrieve the emitting entity

Kavindra Palaraja kdpalara at trolltech.com
Mon Apr 27 16:01:44 CEST 2009


Luca Ferrari wrote:
> Hi all,
> is it possible from within a slot having access to the emitting Qt object? For 
> instance a pressed button within a slot connected to the clicked() signal?
>
>   
Correct me if I am wrong, but it seems like you want to know who emitted
the signal.

Try QSignalMapper:

http://doc.trolltech.com/4.5/qsignalmapper.html

Good luck :)

K.




More information about the Qt-interest-old mailing list