diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-16 03:12:53 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-16 03:12:53 (GMT) |
commit | 274cb027444e26d465888842310000963b06aae9 (patch) | |
tree | 4e1adaf6e46054105cd501e4cb433d1581d7c54f /examples/declarative/webview/content/Mapping/Map.qml | |
parent | cd1d2d34d7c2dcbc45b9ca025ebaac4ab4dbc657 (diff) | |
download | Qt-274cb027444e26d465888842310000963b06aae9.zip Qt-274cb027444e26d465888842310000963b06aae9.tar.gz Qt-274cb027444e26d465888842310000963b06aae9.tar.bz2 |
Web service integration example - Google Maps
Diffstat (limited to 'examples/declarative/webview/content/Mapping/Map.qml')
-rw-r--r-- | examples/declarative/webview/content/Mapping/Map.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/declarative/webview/content/Mapping/Map.qml b/examples/declarative/webview/content/Mapping/Map.qml new file mode 100644 index 0000000..9bde031 --- /dev/null +++ b/examples/declarative/webview/content/Mapping/Map.qml @@ -0,0 +1,20 @@ +import Qt 4.6
+
+Item {
+ id: page
+ property real latitude: -34.397
+ property real longitude: 150.644
+ property string address: ""
+ WebView {
+ id: map
+ anchors.fill: parent
+ url: "map.html"
+ javaScriptWindowObjects: Object {
+ WebView.windowObjectName: "qml"
+ property real lat: page.latitude
+ property real lng: page.longitude
+ property string address: page.address
+ onAddressChanged: {map.evaluateJavaScript("goToAddress()")}
+ }
+ }
+}
|