内容表

上一话题

Qt Positioning Plugins

下一话题

Weather Info (C++/QML)

SatelliteInfo (C++/QML)

The SatelliteInfo example shows how the available satellites at the user’s current position and marks the satellites currently contributing to the GPS fix as pink.

Key Qt Positioning 类被用于此范例:

../_images/example-satelliteinfo.png

The example displays the signal strength of all satellites in view. Any satellite that is currently used to calculate the GPS fix has been marked pink. The number at the bottom of each signal bar is the individual satellite identifier.

The application operates in three different modes:

Application mode

描述

running

The application continuously queries the system for satellite updates. When new data is available it will be displayed.

stopped

The application stops updating the satellite information.

single

The application makes a single update request with a timeout of 10s. The display remains empty until the request was answered by the system.

If the platform does not provide satellite information the application automatically switches into a demo mode whereby it continuously switches between predefined sets of satellite data.

运行范例

要运行范例从 Qt Creator ,打开 欢迎 模式,然后选择范例从 范例 . For more information, visit Building and Running an Example.

范例工程 @ code.qt.io