标签: c++ qt qml
我正在尝试设置文本字段对象" fname"使用以下
QMetaObject::invokeMethod(fname,"setText", Qt::QueuedConnection, Q_ARG(QString, "Sample Text"));
但我收到以下错误。有什么想法吗?
QObject::startTimer: Timers cannot be started from another thread.