[Qt-interest] callobject from slot method

Jaco Naude naude.jaco at gmail.com
Tue Apr 20 12:42:15 CEST 2010


I think you are looking for QObject::sender():

http://doc.trolltech.com/4.6/qobject.html#sender

On Tue, Apr 20, 2010 at 10:17 AM, Frank Lutz <frank422542 at googlemail.com> wrote:
> Hi,
>
> Do there there is one possibility to get the object who has triggered
> that slot without going over EventFilter?
> Because i do have one method for two different objects and it's
> important to know which of them has make the signal.
>
> greetings Frank
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



More information about the Qt-interest-old mailing list