geoSatelliteInfo QML Value Type
geoSatelliteInfo 类型表示有关卫星的基本信息。更多内容...
| Import Statement: | import QtPositioning |
| Since: | Qt 6.5 |
属性
- satelliteIdentifier : int
- satelliteSystem : enumeration
- signalStrength : real
方法
- real attribute(Attribute attr)
- bool hasAttribute(Attribute attr)
详细说明
该类型是QGeoSatelliteInfo 的 QML 表示形式。该类型无法通过 QML 创建,仅可在处理来自SatelliteSource 的卫星更新时使用。
该类型包含satelliteSystem 、satelliteIdentifier 和signalStrength 这三个只读属性,以及一些可选属性。
使用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()。
© 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.