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 |
該類在 Qt 5.12 引入。
| QGeoRouteLeg (const QGeoRouteLeg & other ) | |
| QGeoRouteLeg () | |
| ~QGeoRouteLeg () | |
| int | legIndex () const |
| QGeoRoute | overallRoute () const |
| void | setLegIndex (int idx ) |
| void | setOverallRoute (const QGeoRoute & route ) |
注意: QGeoRoute::routeLegs will return an empty list if called on a route leg.
另請參閱 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.
另請參閱 setLegIndex ().
Returns the route that contains this route leg.
另請參閱 setOverallRoute ().
Sets the route leg index to idx .
另請參閱 legIndex ().
設置 route that contains this route leg.
另請參閱 overallRoute ().