Qt QML WorkerScript

The Qml WorkerScript module enables the use of threads in a Qt Quick application.

使用 WorkerScript to run operations in a new thread. This is useful for running operations in the background so that the main GUI thread is not blocked.

The WorkerScript supports passing messages between the new thread and the parent thread.

要使用此模块中的类型,采用以下行 import 模块:

import QtQml.WorkerScript
					

API 参考