|
|
If you use the signal/slot mechanism, you can use the function
QObject::sender()
http://doc.trolltech.com/4.3/qobject.html#sender
Greetings
Niklas
Yong Taro schrieb:
> hello,
>
> having a global function "A()" that will be called by different QObject
> derived objects,
> how in "A()" to get the pointer the QObject* to the caller ?
>
> is there a way to do this ?
>
> thanks
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|