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. MapCircle QML Type - problem to create it dinamically
QtWS25 Last Chance

MapCircle QML Type - problem to create it dinamically

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

    Hi. I want to create mapcircle on a map dinamically. Here is the code :

    var component = Qt.createComponent("mapcircle.qml")
    var circle = component.createObject(myMap, {});
    myMap.addMapItem(circle)
    }

    mapcircle.qml

    import QtQuick 2.0
    import QtLocation 5.6

    MapCircle { center { latitude: 0; longitude: 0 } radius: 5000.0; color: 'green'; border.width: 3}

    Does anybody know how can i do this as this code doesn't work. but the way of creation works for the Recangle and other object.

    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