The QGeoRouteLeg class represents a leg of a route, that is the portion of a route between one waypoint and the next. This is a subclass of QGeoRoute, exposing route leg specific API. More...
Header: | #include <QGeoRouteLeg> |
qmake: | QT += location |
Since: | Qt 5.12 |
Inherits: | QGeoRoute |
QGeoRouteLeg(const QGeoRouteLeg &other) | |
QGeoRouteLeg() | |
~QGeoRouteLeg() | |
int | legIndex() const |
QGeoRoute | overallRoute() const |
void | setLegIndex(int idx) |
void | setOverallRoute(const QGeoRoute &route) |
Note: QGeoRoute::routeLegs will return an empty list if called on a route leg.
See also QGeoRoute.
Constructs a route leg object from the contents of other.
Constructs a route leg object.
Destroys this route object.
Returns the index of this route leg inside the containing QGeoRoute::routeLegs list. Can be used to find the next legs.
See also setLegIndex().
Returns the route that contains this route leg.
See also setOverallRoute().
Sets the route leg index to idx.
See also legIndex().
Sets the route that contains this route leg.
See also overallRoute().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: