In questa pagina

Qt Qml WorkerScript

Il modulo Qml WorkerScript consente l'uso dei thread in un'applicazione Qt Quick.

Utilizzare WorkerScript per eseguire operazioni in un nuovo thread. Ciò è utile per eseguire operazioni in background in modo che il thread principale della GUI non venga bloccato.

WorkerScript supporta il passaggio di messaggi tra il nuovo thread e il thread padre.

Per utilizzare i tipi presenti in questo modulo, importare il modulo con la seguente riga:

import QtQml.WorkerScript

Riferimento API

Licenze

Qt Qml WorkerScript è disponibile con licenze commerciali fornite da The Qt Company. Inoltre, è disponibile sotto la GNU Lesser General Public License, versione 3, o la GNU General Public License, versione 2. Per ulteriori dettagli, consultare la sezione Licenze 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.