Hello guys,
i am trying to read the QGC code for second devolopement.
i am QML freshman. and there is a problem bother me a lot, Would be nice to tell me about the answer.
in file PlanView.qml, there is a var ‘object’, as show below, where this ‘object’ declared, and where it come from?
// Add the vehicles to the map
MapItemView {
model: QGroundControl.multiVehicleManager.vehicles
delegate:
VehicleMapItem {
vehicle: object ////------where this 'object' come from?
coordinate: object.coordinate ////------where this 'object' come from?
map: editorMap
size: ScreenTools.defaultFontPixelHeight * 3
z: QGroundControl.zOrderMapItems - 1
}
}
thanks a lot.