QObject* test;metaObject()->invokeMethod( &someQObject, "testMethod", Q_RETURN_ARG(QObject*,test), Q_ARG(QString,"sender: "));qDebug() << test;
QObject* testMethod(QString s) { qDebug() << s; return sender();}
C++ (Qt)QObject * QObject::sender() const [protected]
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0.