Toggle navigation

Step 7: Retrieving satellite information

To retrieve information about satellites, define two public slots in the mainwindow.h.

After this, create a private member variable in the mainwindow.h to hold the pointer to the satellite info source.

Define a private function which begins the satellite monitoring.

Create the satellite info source with the QGeoSatelliteInfoSource::createDefaultSource() function.

Connect the signals to the slots as follows:

After this, call the QGeoSatelliteInfoSource::startUpdates() function:

Implement the slot functions.

Lastly, call the startSatelliteMonitor function in the constructor of the class.


Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved