本页内容

Qt Positioning QML Types

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

import QtPositioning

值类型

geoCircle

该类型表示一个环形地理区域

geoCoordinate

该类型表示并存储地理位置

geoPath

该类型表示地理路径

geoPolygon

该类型表示地理多边形

geoRectangle

该类型表示一个矩形地理区域

geoSatelliteInfo

该类型表示卫星的基本信息

geoShape

geoShape 类型表示一个抽象的地理区域

对象类型

Address

QML 类型表示一个以街道地址形式呈现的特定位置

CoordinateAnimation

用于地理坐标属性的 PropertyAnimation

Location

类型存储位置数据

PluginParameter

该类型描述了位置插件的参数

Position

该类型存储特定时间点的位置数据,例如坐标(经度、纬度、海拔)和速度

PositionSource

该类型提供设备的当前位置

QtPositioning

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

SatelliteSource

卫星信息

© 2026 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.