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. Using QtQuick Location Map with C++ QGeoMap* items
Forum Updated to NodeBB v4.3 + New Features

Using QtQuick Location Map with C++ QGeoMap* items

Scheduled Pinned Locked Moved QML and Qt Quick
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.
  • K Offline
    K Offline
    kate_alhola
    wrote on last edited by
    #1

    I have a very trivial need, I have Qt Quick UI and I am using Location Map elementy to display map.
    I have C++ application logic that generates data to be displayed on map. My C++ code has QGeoMapPolylineObject that I would like to display on map. Qml Map object has addMapObject() function but that function would like to have QDeclarativeGeoMapObject but from C++ I have QGeoMapObject.

    I could create QDeclarativeGeoMapPolylineObject cfom my C++ code but that class is definen on private header qdeclarativegeomappolylineobject_p.h . Having my source depending on Qt Location private heares does not sound a good idea.

    I have tried look also other alternatives from Qml Location plugin but all of them takes input as QDeclarativeGeoMap* and I have not find any way to pass QGeoMap* objects there.

    Is there any practical method display data from C++ to Qml Location Map ?

    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