Sur cette page

Qt Qml WorkerScript

Le module Qml WorkerScript permet d'utiliser des threads dans une application Qt Quick.

Utilisez WorkerScript pour exécuter des opérations dans un nouveau thread. Cela est utile pour exécuter des opérations en arrière-plan afin que le thread principal de l'interface graphique ne soit pas bloqué.

WorkerScript prend en charge le transfert de messages entre le nouveau thread et le thread parent.

Pour utiliser les types de ce module, importez-le à l’aide de la ligne suivante :

import QtQml.WorkerScript

Référence de l'API

Licences

Qt Qml WorkerScript est disponible sous licence commerciale auprès de The Qt Company. Il est également disponible sous la licence GNU Lesser General Public License, version 3, ou la licence GNU General Public License, version 2. Consultez la page Licences Qt pour plus de détails.

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