IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QGeoRouteLeg Class

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.

This class was introduced in Qt 5.12.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QGeoRouteLeg Class

  • Header: QGeoRouteLeg

  • Since: Qt 5.12

  • qmake: QT += location

  • Inherits: QGeoRoute

  • Group: QGeoRouteLeg is part of QtLocation-routing

Detailed Description

QGeoRoute::routeLegs will return an empty list if called on a route leg.

See Also

See also QGeoRoute

Member Function Documentation

 

QGeoRouteLeg::QGeoRouteLeg()

Constructs a route leg object.

QGeoRouteLeg::QGeoRouteLeg(const QGeoRouteLeg &other)

Constructs a route leg object from the contents of other.

QGeoRouteLeg::~QGeoRouteLeg()

Destroys this route object.

int QGeoRouteLeg::legIndex() const

Returns the index of this route leg inside the containing QGeoRoute::routeLegs list. Can be used to find the next legs.

See Also

See also setLegIndex()

QGeoRoute QGeoRouteLeg::overallRoute() const

Returns the route that contains this route leg.

See Also

See also setOverallRoute()

void QGeoRouteLeg::setLegIndex(int idx)

Sets the route leg index to idx.

See Also

See also legIndex()

void QGeoRouteLeg::setOverallRoute(const QGeoRoute &route)

Sets the route that contains this route leg.

See Also

See also overallRoute()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+