QObject::connect(thread,SIGNAL(finished()),thread,SLOT(deleteLater())); // 启动子线程并触发延时工作 thread->start(); QMetaObject::invokeMethod(worker,"doDelayedWork",Qt::QueuedConnection); 这样,当在主线程中调用QMetaObject::invokeMethod()触发doDelayedWork方法时,该方法会在子线程中执行延时操作。一...