geoSatelliteInfo QML Value Type

The geoSatelliteInfo type represents basic information about a satellite. 更多...

import 語句: import QtPositioning
Since: Qt 6.5

特性

方法

詳細描述

This type is a QML representation of QGeoSatelliteInfo . The type is uncreatable from QML and can only be used when handling satellite updates from SatelliteSource .

This type contains the satelliteSystem , satelliteIdentifier and signalStrength read-only properties, and also optional attributes.

使用 hasAttribute method to check if the attribute exists or not, and the attribute method to get its value.

另請參閱 QGeoSatelliteInfo .

特性文檔編製

satelliteIdentifier : int [read-only]

Holds the satellite identifier number.

The satellite identifier number can be used to identify a satellite within the satellite system.

The actual value may vary, depending on the platform and the selected backend.

satelliteSystem : enumeration [read-only]

Holds the GNSS system of the satellite.

常量 描述
GeoSatelliteInfo.Undefined 未定義。
GeoSatelliteInfo.GPS 全球定位係統 (USA 美國)。
GeoSatelliteInfo.GLONASS 全球定位係統 (俄羅斯)。
GeoSatelliteInfo.GALILEO 全球導航衛星係統 (EU 歐盟)。
GeoSatelliteInfo.BEIDOU 北鬥導航衛星係統 (中國)。
GeoSatelliteInfo.QZSS 準天頂衛星係統 (日本)。
GeoSatelliteInfo.Multiple This type normally indicates that the information is received from a device that supports multiple satellite systems, and the satellite system is not explicitly specified.
GeoSatelliteInfo.CustomType The first type that can be used for user purposes.

signalStrength : real [read-only]

Holds the signal strength in decibels.

方法文檔編製

real 屬性 ( 屬性 attr )

Returns the value of the attribute attr or -1 if the value has not been set.

The following attributes are supported:

  • GeoSatelliteInfo.Elevation - the elevation of the satellite, in degrees.
  • GeoSatelliteInfo.Azimuth - the azimuth to true north, in degrees.

bool hasAttribute ( 屬性 attr )

返迴 true if the satellite information contains the attribute attr . Otherwise returns false .

attribute () for the list of supported attributes.