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. qml map

qml map

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 165 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.
  • Y Offline
    Y Offline
    Yaldiz
    wrote on last edited by Yaldiz
    #1

    Hi,
    When i change the Repeater Model in qml Map, MapPolygon does not draws anything.

    function changeModel()
    {
        repeaterId.model = 
                [
                    { points: [  { latitude: 45, longitude: -73 }, { latitude: 46, longitude: -73 }, { latitude: 46, longitude: -74 } ] },
                    { points: [  { latitude: 47, longitude: -75 }, { latitude: 48, longitude: -75 }, { latitude: 48, longitude: -76 } ] }
                ]
    }
    
    Repeater
    {
        id : repeaterId
    
        model :
            [
                { points: [  { latitude: 45, longitude: -73 }, { latitude: 46, longitude: -73 }, { latitude: 46, longitude: -74 } ] }
            ]
    
        delegate: MapPolygon {
            path: modelData.points
            border.color : "red"
            border.width: 10
            color : "yellow"
    
        }
    }
    
    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