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
Forum Update on Monday, May 27th 2025

qml map

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 140 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 9 May 2023, 11:33 last edited by Yaldiz 5 Sept 2023, 11:33
    #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

    1/1

    9 May 2023, 11:33

    • 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