Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
Get a list of all Landmarks
S60 5th Edition
This code snippets shows how to get list the names of landmarks in the Landmark Database using the Qt Mobile Extension XQLandmark.
Install the Qt SDK (recommended when Using Symbian C++ in a Qt project).
XQLandmarksManager* landmarkManager = new XQLandmarksManager (this);
//Get list of all landmark IDs from the database
QList<int> ids = landmarkManager->landmarkIds();
// Go through all the landmark items in the list
for ( int i = 0; i <ids.count(); ++i )
XQLandmark landmark = landmarkManager ->landmark(ids.value(i));
qreal latitude = landmark.latitude();
qreal longitude = landmark.longitude();
QString name = landmark.name();