[Qt-interest] retrieve the emitting entity

Ender EREL erelender at yahoo.com
Mon Apr 27 16:04:54 CEST 2009


You can also use sender() function inside the slot to retrieve the 
sender object, but this way the slot will have to know about the sender, 
and it will probably not work if the slot is called by other means or 
other types of senders. So the best solution here is obviously using 
QSignalMapper.

-- 
Ender EREL



More information about the Qt-interest-old mailing list