- class QGeoManeuver#
概述#
属性#
方法#
def
__init__()def
direction()定义
isValid()定义
__ne__()定义
__eq__()定义
position()定义
swap()定义
waypoint()
注意
本文档可能包含从 C++ 自动翻译到 Python 的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您在翻译中发现问题,您也可以通过在 https:/bugreports.qt.io/projects/PYSIDE 上创建票据来让我们知道。
详细描述#
- class InstructionDirection#
注意
当使用 `from __feature__ import true_property` 时,可以直接使用属性;否则通过访问函数使用。
- 属性 direction: QGeoManeuver.InstructionDirection#
- 访问函数
- 属性 distanceToNextInstruction: float#
- 属性 extendedAttributes: 字典 ,键为 .QString 类型,值为 QVariant 类型。#
- 访问函数
- 属性 instructionText: str#
- 访问函数
- 属性 position: QGeoCoordinate#
- 访问函数
- 属性 timeToNextInstruction: int#
- 属性 valid: bool#
- 访问函数
- 属性 waypoint: QGeoCoordinate#
- 访问函数
- __init__(other)#
- 参数:
other –
QGeoManeuver
- __init__()
属性
direction的获取器。- distanceToNextInstruction()#
- 返回类型:
float
属性
distanceToNextInstruction的获取器。- extendedAttributes()#
- 返回类型:
键为 .QString 类型,值为 QVariant 类型的字典。
extendedAttributes属性的 getter。- instructionText()#
- 返回类型:
str
instructionText属性的 getter。- isValid()#
- 返回类型:
bool
valid属性的 getter。- __ne__(rhs)#
- 参数:
rhs –
QGeoManeuver- 返回类型:
bool
- __eq__(rhs)#
- 参数:
rhs –
QGeoManeuver- 返回类型:
bool
- position()#
- 返回类型:
position属性的 getter。- setDirection(direction)#
- 参数:
direction –
InstructionDirection
- setDistanceToNextInstruction(distance)#
- 参数:
distance – float
- setExtendedAttributes(extendedAttributes)#
- 参数:
extendedAttributes – 键为 .QString 类型,值为 QVariant 类型的字典。
- setInstructionText(instructionText)#
- 参数:
instructionText – str
- setPosition(position)#
- 参数:
position –
QGeoCoordinate
- setTimeToNextInstruction(secs)#
- 参数:
secs – int
- setWaypoint(coordinate)#
- 参数:
coordinate –
QGeoCoordinate
- swap(other)#
- 参数:
other –
QGeoManeuver
- timeToNextInstruction()#
- 返回类型:
int
属性
timeToNextInstruction的获取器。- waypoint()#
- 返回类型:
属性
waypoint的获取器。