Qt Positioning QML Types

该模块的标识字符串是QtPositioning。要使用该模块的 QML,请在 QML 文件中包含以下导入语句:

import QtPositioning

值类型

coordinate

类型表示并存储地理位置

geoSatelliteInfo

类型表示卫星的基本信息

geocircle

类型表示一个圆形地理区域

geopath

类型表示地理路径

geopolygon

类型表示地理多边形

georectangle

类型表示矩形地理区域

geoshape

地理形状类型表示抽象地理区域

对象类型

Address

QML 类型表示特定位置,如街道地址

CoordinateAnimation

用于地理坐标属性的 PropertyAnimation

Location

保存位置数据的类型

PluginParameter

描述位置插件参数的类型

Position

类型保存特定时间点的位置数据,如坐标(经度、纬度、高度)和速度

PositionSource

类型提供设备的当前位置

QtPositioning

全局对象为在 QML 中处理基于位置的类型提供了有用的功能

SatelliteSource

卫星信息

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.