Qt/C++: What's the best way to call a method asynchronously in Qt event loop without having to write its name in string?

后端 未结 0 998
一个人的身影
一个人的身影 2020-12-29 15:20

The normal way is with invokeMethod:

QMetaObject::invokeMethod(this, "methodName", Qt::QueuedConnection);

which works

相关标签:
回答
  • 消灭零回复
提交回复
热议问题