Nesta página

Qt Qml WorkerScript

O módulo Qml WorkerScript permite o uso de threads em um aplicativo Qt Quick.

Use o WorkerScript para executar operações em uma nova thread. Isso é útil para executar operações em segundo plano, de modo que a thread principal da GUI não fique bloqueada.

O WorkerScript suporta a troca de mensagens entre a nova thread e a thread pai.

Para utilizar os tipos deste módulo, importe-o com a seguinte linha:

import QtQml.WorkerScript

Referência da API

Licenças

Qt Qml WorkerScript está disponível sob licenças comerciais da The Qt Company. Além disso, está disponível sob a GNU Lesser General Public License, versão 3, ou a GNU General Public License, versão 2. Consulte Licenciamento do Qt para obter mais detalhes.

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