geoSatelliteInfo QML Value Type

geoSatelliteInfo 类型表示卫星的基本信息。更多

Import Statement: import QtPositioning
Since: Qt 6.5

属性

方法

详细描述

该类型是QGeoSatelliteInfo 的 QML 表示。该类型无法从 QML 中创建,只能在处理来自SatelliteSource 的卫星更新时使用。

该类型包含satelliteSystemsatelliteIdentifiersignalStrength 只读属性,以及可选属性。

使用hasAttribute 方法检查属性是否存在,使用attribute 方法获取属性值。

另请参阅 QGeoSatelliteInfo

属性文档

satelliteIdentifier : int [read-only]

保存卫星标识符编号。

卫星标识符编号可用于在卫星系统中识别卫星。

实际值可能因平台和所选后端而异。


satelliteSystem : enumeration [read-only]

持有卫星的 GNSS 系统。

常数说明
GeoSatelliteInfo.Undefined未定义。
GeoSatelliteInfo.GPS全球定位系统(美国)。
GeoSatelliteInfo.GLONASS全球定位系统(俄罗斯)。
GeoSatelliteInfo.GALILEO全球导航卫星系统(欧盟)。
GeoSatelliteInfo.BEIDOU北斗导航卫星系统(中国)。
GeoSatelliteInfo.QZSS准天顶卫星系统(日本)。
GeoSatelliteInfo.Multiple这种类型通常表示信息是从支持多个卫星系统的设备接收的,但没有明确指定卫星系统。
GeoSatelliteInfo.CustomType第一种可用于用户目的的类型。

signalStrength : real [read-only]

以分贝为单位保存信号强度。


方法文档

real attribute(Attribute attr)

返回属性值attr ,如果未设置属性值,则返回-1。

支持以下属性

  • GeoSatelliteInfo.Elevation - 卫星的海拔高度,单位为度。
  • GeoSatelliteInfo.Azimuth - 真北方位角,单位为度。

bool hasAttribute(Attribute attr)

如果卫星信息包含属性attr ,则返回true 。否则返回false

有关支持的属性列表,请参阅attribute() 。


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