I am passing the coordinate value from c++ to qml and assigning that value to coordinate type in qml. But when i tried to print the coordinate value nothing is printed. when i tried to print the passed value through console.log i am able to see the value. What am i missing?
Plane {
id: cppPlane
pilotName: "PCC"
coordinate: backend.headingPos
//coordinate: bengaluru
MouseArea {
anchors.fill: parent
}
Timer{
id:timer1
interval: 100
running: true
repeat: false
onTriggered: {
mapofKA.zoomLevel=4
console.log(backend.dataDir)
console.log(cppPlane.coordinate)
console.log(backend.headingPos)
if (cppPlaneAnimation.running || backend.isFlying())
{
console.log("Plane still in the air.");
return;
}
cppPlaneAnimation.start();
cppPlane.departed();
}
}
}
In the console:
qml: D:/MAPDATA
qml:
qml: 12° 17' 44.9" N, 76° 38' 21.8" E