mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ref T486 Using QMetaObject::invokeMethod with pointer-to-member-function (or functor).
This commit is contained in:
@@ -73,7 +73,7 @@ namespace BlackMisc
|
||||
worker->setObjectName(name);
|
||||
|
||||
worker->moveToThread(thread);
|
||||
const bool s = QMetaObject::invokeMethod(worker, "ps_runTask");
|
||||
const bool s = QMetaObject::invokeMethod(worker, &CWorker::ps_runTask);
|
||||
Q_ASSERT_X(s, Q_FUNC_INFO, "cannot invoke");
|
||||
Q_UNUSED(s);
|
||||
thread->start();
|
||||
|
||||
Reference in New Issue
Block a user