diff options
author | No'am Rosenthal <noam.rosenthal@nokia.com> | 2011-07-05 14:02:19 -0700 |
---|---|---|
committer | No'am Rosenthal <noam.rosenthal@nokia.com> | 2011-07-05 14:02:19 -0700 |
commit | b49ccb384eb37f821c06c1e68dd3ca11837f54c6 (patch) | |
tree | 51b73185d11c9cb547a7820ba6fd16b0c4186651 /examples | |
parent | ebcefe0e8536bfb3d2c68493e452e5f6d1f4e4fc (diff) | |
download | qtwebchannel-b49ccb384eb37f821c06c1e68dd3ca11837f54c6.tar.gz |
Use Uuids instead of int IDs
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qmlapp/qmlapp.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/qmlapp/qmlapp.qml b/examples/qmlapp/qmlapp.qml index c8d6cae..06f9cdc 100644 --- a/examples/qmlapp/qmlapp.qml +++ b/examples/qmlapp/qmlapp.qml @@ -10,13 +10,15 @@ Rectangle { useSecret: false onRequest: { var data = JSON.parse(request); + txt.text = data.a; response.send(JSON.stringify({b:'This is a response from QML'})); } } WebView { id: webView - anchors.top: parent.top + anchors.top: txt.bottom + height: 200 settings.localContentCanAccessRemoteUrls: true settings.developerExtrasEnabled: true url: "index.html?baseUrl=" + webChannel.baseUrl @@ -24,6 +26,6 @@ Rectangle { Text { id: txt - anchors.top: webView.bottom + anchors.top: parent.top } } |