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. 更多...
头: | #include <QGeoRouteLeg> |
qmake: | QT += location |
Since: | Qt 5.12 |
继承: | QGeoRoute |
QGeoRouteLeg () | |
QGeoRouteLeg (const QGeoRouteLeg & other ) | |
~QGeoRouteLeg () | |
int | legIndex () const |
QGeoRoute | overallRoute () const |
void | setLegIndex (int idx ) |
void | setOverallRoute (const QGeoRoute & route ) |
QGeoRouteLeg (const QExplicitlySharedDataPointer<QGeoRoutePrivate> & dd ) |
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.
注意: QGeoRoute::routeLegs will return an empty list if called on a route leg.
另请参阅 QGeoRoute .
Constructs a route leg object.
Constructs a route leg object from the contents of other .
[protected]
QGeoRouteLeg::
QGeoRouteLeg
(const
QExplicitlySharedDataPointer
<
QGeoRoutePrivate
> &
dd
)
Default constructs an instance of QGeoRouteLeg.
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.
另请参阅 setLegIndex ().
返回 route that contains this route leg.
另请参阅 setOverallRoute ().
Sets the route leg index to idx .
另请参阅 legIndex ().
设置 route that contains this route leg.
另请参阅 overallRoute ().