title: QML append new PathCurve elements to List<PathElements> in ShapePath
body: <p>To be specific: I want to connect several Points on a Map with a spline curve. New points can be added with a Mouseclick and should also be connected to the existing Path. The points are stored within a model, so I can access them also in C++.</p>
  
  <p>Unfortunately I can't figure out, how I can append new PathCurve elements to the existing List in the Shape::ShapePath Object.</p>
  
  <p>I expected that something like this should work:</p>
  
  <pre><code>...
  
  MapQuickItem {
      coordinate: QtPositioning.coordinate(0.0000, 0.0000)
  
      sourceItem: Shape {
      id: myShape
          anchors.fill: parent
          vendorExtensionsEnabled: false
  
          ShapePath {
              id: myPath
              strokeColor: "black"
              strokeWidth: 2
              capStyle: ShapePath.RoundCap
              fillColor: "transparent"
  
              startX: 0; startY: 0
          }
      }
      zoomLevel: 15
  }
  
  MouseArea {
      anchors.fill: parent
  
      onClicked: {
          var coord = parent.toCoordinate(Qt.point(mouse.x,mouse.y))
  
          myPath.pathElements.push( new PathCurve(mouse.x, mouse.y) ) //does not work
      }
  }
  </code></pre>
  
  <p>I also tried to fill the PathElements from C++, but the PathCurve class seems to be private and is only usable from within QML. Hardcoding PathCurve Elements works just fine like in every online example, but I want to dynamically modify the list of pathelements.</p>
  
  <p>Any help would be appreciated very much!</p>