天天看点

QT子线程中使用主线程的方法

QT子线程中使用主线程的方法

QT子线程中使用主线程的方法

QMetaObject::invokeMethod(p, “setText”, Q_ARG(const QString &, strNum));

使用QMetaObject::invokeMethod方法将setText函数在主线程运行。

继续阅读