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. Change Path Property of MapPolyline from c++

Change Path Property of MapPolyline from c++

Scheduled Pinned Locked Moved QML and Qt Quick
qmlc++mapmappolyline
1 Posts 1 Posters 763 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.
  • B Offline
    B Offline
    Bischi
    wrote on 15 Sept 2015, 12:56 last edited by
    #1

    Hi everyone!

    I am developing a small App with QtQuick and I want to draw a line for a route into the map. For that I used the MapPolyline:

     MapPolyline {
            id: mapline
            objectName: "MapLine"
            path:
            {[
                    { latitude: 47.219791, longitude: 9.546032 },
                    { latitude: 47.219657, longitude: 9.542508 },
                    { latitude: 47.2194446, longitude: 9.5437876 }
             ]}
    

    It works perfectly, if I define the coordinates directly in QML.

    But how can I change the content of the path - property from the c++ file?

    Thanks for help!

    1 Reply Last reply
    0

    1/1

    15 Sept 2015, 12:56

    • Login

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