Hi.
I use Runtime version 100.8 and Qt 5.15.0 .
I want to get Lat/Long from MultiPointBuilder.
property int count: 0
Connections{
target: mainMap
function onMouseClicked(mouseEvent) {
clickPointBuilder.points.addPoint(screenToLocation(mouseEvent.x,mouseEvent.y))
console.log(clickPointBuilder.points.point(count).x)
count++
}
}
This code get error [TypeError: Cannot read property 'x' of null].
Why get error?