Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Cannot find QGraphicsGeoMap class in Qt5
Forum Updated to NodeBB v4.3 + New Features

Cannot find QGraphicsGeoMap class in Qt5

Scheduled Pinned Locked Moved 3rd Party Software
1 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    giu75rm
    wrote on last edited by
    #1

    Hi All,

    in order to provide an application with a mapping service (I need to show the terrain map given the latitude and longitude), I have tried the following code:

    @
    QStringList services = QGeoServiceProvider::availableServiceProviders();
    QGeoServiceProvider service("nokia");
    QGeoMappingManager *manager = service.mappingManager();
    QGraphicsGeoMap *geoMap = new QGraphicsGeoMap(manager);
    geoMap->setCenter(QGeoCoordinate(52.75, -2.75));
    geoMap->setMapType(QGraphicsGeoMap::TerrainMap);
    ...
    @

    which is supposed to be working with Qt 4 extended with the "Mobility" module.

    I was able to successfully instantiate QGeoServiceProvider and QGeoMappingManager classes on Qt5 by adding "location" and "positioning" modules. QGraphicsGeoMap though seems not to be existent any longer on Qt5.2 or maybe replaced or located somewhere else.

    I really hope that somebody has already come across this kind of issue.

    Thank you in advance
    Giuseppe

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved