void Wrapper::callMethod(QString foo, QString bar){ QMetaObject::invokeMethod(worker, "method", Q_ARG(QString, foo), Q_ARG(QString, bar));}
void Wrapper::callMethod(QString foo, QString bar){ auto methodFunc = [this, foo, bar]() { worker->method(foo, bar); }; QMetaObject::invokeMethod(worker, methodFunc);}
C++ (Qt)struct SomeClient {... SomeObject * m_Object;...};
C++ (Qt)QWeakPointer<SomeObject> m_Object;
C++ (Qt)QPointer<SomeObject> m_Object;