blob: 9bde031803bf482f6984655c6b1ceb1d57affae1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()")}
}
}
}
|