diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2023-08-07 16:24:03 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-08-08 15:12:46 +0200 |
commit | fc767c2441e9d7ab4bf5f02c721e47596cc587c0 (patch) | |
tree | 1429cbb5a0e546e995e364bce628e4bbf068d489 /tests/auto/qml/qqmlxmlhttprequest | |
parent | 7e198b226302f7f8683bd1cc61200d5bd2852c4a (diff) |
Fix QML error, accessing global status
Give the outer QtObject an id so we can overtly access its status.
Change-Id: Iffe68b85cc43d2bedf046dc40d6c6cae34569072
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlxmlhttprequest')
-rw-r--r-- | tests/auto/qml/qqmlxmlhttprequest/data/receiveBinaryData.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/receiveBinaryData.qml b/tests/auto/qml/qqmlxmlhttprequest/data/receiveBinaryData.qml index b9f0ab6e66..15503d1bc6 100644 --- a/tests/auto/qml/qqmlxmlhttprequest/data/receiveBinaryData.qml +++ b/tests/auto/qml/qqmlxmlhttprequest/data/receiveBinaryData.qml @@ -4,6 +4,7 @@ QtObject { property string url property int readSize: 0 property int status: 0 + id: object Component.onCompleted: { @@ -13,7 +14,7 @@ QtObject { request.onreadystatechange = function() { if (request.readyState == XMLHttpRequest.DONE) { - status = request.status; + object.status = request.status; var arrayBuffer = request.response; if (arrayBuffer) { var byteArray = new Uint8Array(arrayBuffer); |