Qt Qml WorkerScript
Qml的WorkerScript 模块支持在Qt Quick 应用程序中使用线程。
使用WorkerScript 在新线程中运行操作。这对于在后台运行操作非常有用,从而避免阻塞主 GUI 线程。
WorkerScript 支持在新线程与父线程之间传递消息。
要使用本模块中的类型,请使用以下代码行导入该模块:
import QtQml.WorkerScriptAPI 参考
许可证
Qt Qml WorkerScript 由The Qt Company 提供商业许可。此外,它还遵循GNU 较少通用公共许可证第 3 版或GNU 通用公共许可证第 2 版。更多详细信息请参阅Qt 许可。
© 2026 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.