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.