aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcachegen/data/worker.qml
blob: 1f1c9d1ac7341fc1f0fe5de926d68d05f16b2221 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import QtQml 2.0
import QtQuick 2.0
QtObject {
    property bool success: false
    property WorkerScript worker: WorkerScript {
        source: "worker.js"
        onMessage: {
            success = true
        }
    }
    Component.onCompleted: worker.sendMessage("Hello")
}