Qt Qml WorkerScript
QmlWorkerScript 模块可在Qt Quick 应用程序中使用线程。
使用WorkerScript 可在新线程中运行操作。这对于在后台运行操作非常有用,这样主 GUI 线程就不会被阻塞。
WorkerScript 支持在新线程和父线程之间传递消息。
要使用该模块中的类型,请用以下一行导入该模块:
import QtQml.WorkerScript
应用程序接口参考
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.