Qt QML WorkerScript
Le module Qml WorkerScript permet l'utilisation de threads dans une application Qt Quick.
Utilisez WorkerScript pour exécuter des opérations dans un nouveau thread. Ceci 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 passage de messages entre le nouveau thread et le thread parent.
Pour utiliser les types de ce module, importez le module avec la ligne suivante :
import QtQml.WorkerScript
Référence API
Licences
Qt Qml WorkerScript est disponible sous licence commerciale auprès de The Qt Company. En outre, elle est disponible sous la licence GNU Lesser General Public License, version 3, ou la licence GNU General Public License, version 2. Voir Qt Licensing 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.