En esta página

Qt QML WorkerScript

El módulo Qml WorkerScript permite el uso de hilos en una aplicación Qt Quick.

Utilice WorkerScript para ejecutar operaciones en un nuevo hilo. Esto es útil para ejecutar operaciones en segundo plano de modo que el hilo principal de la GUI no se bloquee.

WorkerScript soporta el paso de mensajes entre el nuevo hilo y el hilo padre.

Para utilizar los tipos de este módulo, impórtelo con la siguiente línea:

import QtQml.WorkerScript

Referencia API

Licencias

Qt Qml WorkerScript está disponible bajo licencias comerciales de The Qt Company. Además, está disponible bajo la Licencia Pública General Reducida de GNU, versión 3, o la Licencia Pública General de GNU, versión 2. Ver Licencias Qt para más detalles.

© 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.