Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Maps, Location API, custom plugin and QML

Maps, Location API, custom plugin and QML

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.4k Views
  • 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.
  • V Offline
    V Offline
    VTiTux
    wrote on last edited by
    #1

    Hello,

    I scanned some paper maps and I would like to write an app to display them.
    Initially, I cut it in small tiles and I wanted to display them by using an GridView and an C++ listModel.

    But I discovered the Qt Location API and finally I think that I go to try to create my own plugin map service provider, by sub-classing these classes:
    http://doc.qt.digia.com/qtmobility/location-overview.html#implementing-plugins

    I'm an beginner in c++, this will be maybe difficult, but I will try.

    But I don't understand how to integrate them into QML?
    All these classes are for QWidgets.
    How to subclasse QGeoMapData::paint() to draw a map into the Quick view?
    And how can I call my plugin from the QML?

    There is a way to import maps from C++ to QML, like QQuickImageProvider for images?

    Is there some documentations that can help me?

    Is the QML location API ready for that? Or is it in work in progress?

    Thanks.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VTiTux
      wrote on last edited by
      #2

      Ok, I believe that I have to subclasse QQuickPaintedItem or to use the Scene Graphe API.
      http://qt-project.org/doc/qt-5/qtquick-visualcanvas-scenegraph.html#custom-items-using-qpainter

      Hum. I go to use a GridView and a ListModel, it's easier ;-)

      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