Waypoint QML Type
The Waypoint type provides a mean to specify a waypoint in a RouteQuery in a more detailed way than by using a simple coordinate. More...
| Import Statement: | import QtLocation 6.5 |
| Since: | QtLocation 5.11 |
Detailed Description
A Waypoint is a type that allows to specify properties of a waypoint in a RouteQuery, such as the waypoint coordinate, or the angle of approach to the waypoint.
Changing properties of the waypoint or of its nested MapParameteters will cause the containing RouteQuery to emit the queryDetailsChanged signal.
Example Usage
Plugin {
id: aPlugin
name: "osm"
}
Waypoint {
id: waypointStart
coordinate: ...
bearing: ...
}
Waypoint {
id: waypointFinish
coordinate: ...
bearing: ...
}
RouteQuery {
id: aQuery
Component.onCompleted: {
travelModes = RouteQuery.CarTravel
addWaypoint(waypointStart)
var aWaypoint = Qt.createQmlObject ('import QtLocation 5.11; Waypoint { ... }', ...)
addWaypoint(aWaypoint)
addWaypoint(waypointFinish)
}
}
RouteModel {
id: routeModel
plugin: aPlugin
query: aQuery
autoUpdate: true
}
See also RouteQuery.