<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Crash with sdk when i add elements in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1184993#M4606</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/589362"&gt;@VincentB38&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for providing the additional information. We understand that you have a Qt Widgets application and have embedded a QML file that uses the Runtime Qt API for QML in your application using the QQuickWidget class.&lt;/P&gt;&lt;P&gt;Common programming patterns used with the Runtime Qt API are summarised in the &lt;A href="https://developers.arcgis.com/qt/programming-patterns/best-practices/#map-and-scene-view-options" target="_blank" rel="noopener"&gt;Map and Scene View Options&lt;/A&gt;&amp;nbsp;table. As shown,&amp;nbsp;for Qt Widgets applications we typically use widgets classes in our C++ API (e.g.&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-mapgraphicsview.html" target="_blank" rel="noopener"&gt;MapGraphicsView&lt;/A&gt;).&amp;nbsp;Using the C++ API allows the business logic for an application to be written with C++. The C++ API can also be combined with a Qt Quick interface (e.g. &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-mapquickview.html" target="_self"&gt;MapQuickView&lt;/A&gt;), enabling QML components to be used with C++ business logic. The QML API is commonly used with Qt Quick based apps.&lt;/P&gt;&lt;P&gt;Is there a reason that you have chosen to use the QML API with your Qt Widgets application? Are you able to consider trying one of the more common patterns instead?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 08:50:29 GMT</pubDate>
    <dc:creator>AndrewBladon</dc:creator>
    <dc:date>2022-06-22T08:50:29Z</dc:date>
    <item>
      <title>Crash with sdk when i add elements</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1178495#M4580</link>
      <description>&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;hello,&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;I use esri's sdk, i try to create differente dynamic objects. For this&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;, i use QML on QT for create the map.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;But, when i use a long time the application, it's crash when i create new element. i suppose is not a probleme with the C++ beacause when i don't display the elements, it's work...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I join my QML code with the subject.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;if you have any probleme (with my post) or any solution, i'm here !&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;import QtQuick 2.0&lt;BR /&gt;import QtQuick.Window 2.0&lt;BR /&gt;import QtQuick.Controls 2.2&lt;BR /&gt;import QtPositioning 5.12&lt;BR /&gt;import QtLocation 5.12&lt;BR /&gt;import Esri.ArcGISRuntime 100.14&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Item&lt;BR /&gt;{&lt;BR /&gt;id: qmlMap&lt;BR /&gt;signal transmetreClique (var lat, var log, var changer, var zoom)&lt;BR /&gt;signal transmettreCliqueSuppression(var lat, var log, var zoom)&lt;BR /&gt;signal clavierToucheSuppr()&lt;BR /&gt;signal undo();&lt;BR /&gt;signal redo();&lt;/P&gt;&lt;P&gt;MapView&lt;BR /&gt;{&lt;BR /&gt;anchors.fill: parent&lt;BR /&gt;// set focus to enable keyboard navigation&lt;BR /&gt;focus: true&lt;/P&gt;&lt;P&gt;property bool changer : false&lt;BR /&gt;property int item;&lt;BR /&gt;property bool animer : false&lt;BR /&gt;property int tot : 1&lt;BR /&gt;property bool buttonvalue : false;&lt;/P&gt;&lt;P&gt;property var polygon_contour_obj : null;&lt;BR /&gt;property var polygon_buffer_obj : null;&lt;/P&gt;&lt;P&gt;property var polygon_contour : null;&lt;BR /&gt;property var polygon_buffer : null;&lt;/P&gt;&lt;P&gt;property var listPolyline : [];&lt;BR /&gt;property var listPolygonContour : [];&lt;BR /&gt;id : map&lt;/P&gt;&lt;P&gt;Component.onCompleted: {&lt;BR /&gt;// Set the focus on MapView to initially enable keyboard navigation&lt;BR /&gt;forceActiveFocus();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// add a map to the mapview&lt;BR /&gt;Map {&lt;BR /&gt;// add the ArcGISTopographic basemap to the map&lt;BR /&gt;id : fondmap&lt;BR /&gt;initBasemapStyle: Enums.BasemapStyleArcGISImagery&lt;/P&gt;&lt;P&gt;initialViewpoint: viewpoint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;GraphicsOverlay {&lt;BR /&gt;id: graphicsOverlay&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ViewpointCenter {&lt;BR /&gt;id: viewpoint&lt;/P&gt;&lt;P&gt;// Specify the center Point&lt;BR /&gt;center: Point {&lt;BR /&gt;x: 2.3522219&lt;BR /&gt;y: 48.856614&lt;BR /&gt;spatialReference: SpatialReference {wkid: 4326}&lt;BR /&gt;}&lt;BR /&gt;targetScale: 50000000.0&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;onMouseClicked: { //on MapView&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;const spatialReference = ArcGISRuntimeEnvironment.createObject("SpatialReference",{wkid: 4326});&lt;BR /&gt;const projectedPoint = GeometryEngine.project(mouse.mapPoint, spatialReference);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;console.log(projectedPoint.x,projectedPoint.y,map.mapScale );&lt;/P&gt;&lt;P&gt;if (mouse.button == Qt.LeftButton &amp;amp;&amp;amp; mouse.objectName != 'bouton')&lt;BR /&gt;{&lt;BR /&gt;transmetreClique( projectedPoint.y,projectedPoint.x,map.changer, map.mapScale)&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;transmettreCliqueSuppression( projectedPoint.y, projectedPoint.x, map.mapScale);&lt;BR /&gt;map.changer = false&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Keys.onPressed: {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if( event.key === Qt.Key_Escape)&lt;BR /&gt;{&lt;BR /&gt;//console.log("ok");&lt;BR /&gt;map.animer=false;&lt;/P&gt;&lt;P&gt;animation.running=false&lt;BR /&gt;map.changer = false&lt;BR /&gt;if(map.listPolygonContour[map.item].length &amp;gt; 3)&lt;BR /&gt;{&lt;BR /&gt;map.listPolygonContour[map.item][2].visible =true&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else if (event.key === Qt.Key_Delete &amp;amp;&amp;amp; map.changer)&lt;BR /&gt;{&lt;BR /&gt;clavierToucheSuppr()&lt;BR /&gt;map.changer = false&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Button {&lt;/P&gt;&lt;P&gt;width: 80&lt;BR /&gt;height: 30&lt;BR /&gt;x: qmlMap.width-width-10&lt;BR /&gt;y: 10&lt;BR /&gt;id : buttonUndo&lt;BR /&gt;font.pointSize: 16;&lt;/P&gt;&lt;P&gt;background: Rectangle {&lt;BR /&gt;id : fondUndo;&lt;BR /&gt;radius: 5&lt;BR /&gt;}&lt;BR /&gt;property bool buttonvalue : true;&lt;BR /&gt;//color:"yellow"&lt;/P&gt;&lt;P&gt;visible: true&lt;BR /&gt;text: "&amp;gt;"&lt;BR /&gt;flat : false&lt;BR /&gt;onPressed: {&lt;BR /&gt;fondUndo.opacity = .80&lt;/P&gt;&lt;P&gt;redo()&lt;BR /&gt;}&lt;BR /&gt;onReleased:&lt;BR /&gt;{&lt;BR /&gt;fondUndo.opacity = 1&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;BR /&gt;Button {&lt;/P&gt;&lt;P&gt;width: 80&lt;BR /&gt;height: 30&lt;BR /&gt;x: qmlMap.width-width-20-buttonUndo.width&lt;BR /&gt;y: 10&lt;BR /&gt;id : buttonRedo&lt;BR /&gt;font.pointSize: 16;&lt;/P&gt;&lt;P&gt;background: Rectangle {&lt;BR /&gt;id : fondRedo;&lt;BR /&gt;radius: 5&lt;BR /&gt;}&lt;BR /&gt;property bool buttonvalue : true;&lt;BR /&gt;//color:"yellow"&lt;/P&gt;&lt;P&gt;visible: true&lt;BR /&gt;text: "&amp;lt;"&lt;BR /&gt;flat : false&lt;BR /&gt;onPressed: {&lt;BR /&gt;fondRedo.opacity = .80&lt;BR /&gt;undo()&lt;BR /&gt;}&lt;BR /&gt;onReleased:&lt;BR /&gt;{&lt;BR /&gt;fondRedo.opacity = 1&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Point {&lt;BR /&gt;id: helper&lt;BR /&gt;x : 0&lt;BR /&gt;y : 0&lt;BR /&gt;spatialReference: SpatialReference {wkid: 4326}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;PolygonBuilder {&lt;BR /&gt;id: polygon_contour&lt;BR /&gt;spatialReference: SpatialReference {wkid: 4326}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;PolygonBuilder {&lt;BR /&gt;id: polygon_buffer&lt;BR /&gt;spatialReference: SpatialReference {wkid: 4326}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;SimpleFillSymbol {&lt;BR /&gt;id: polygon_fill_symbol_buffer_contour&lt;BR /&gt;style: Enums.SimpleFillSymbolStyleNull&lt;BR /&gt;color: "yellow"&lt;/P&gt;&lt;P&gt;SimpleLineSymbol {&lt;BR /&gt;style: Enums.SimpleLineSymbolStyleSolid&lt;BR /&gt;color: "red"&lt;BR /&gt;width: 1&lt;BR /&gt;antiAlias: true&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;SimpleFillSymbol {&lt;BR /&gt;id: polygon_fill_symbol_buffer&lt;BR /&gt;style: Enums.SimpleFillSymbolStyleNull&lt;BR /&gt;color: "yellow"&lt;/P&gt;&lt;P&gt;SimpleLineSymbol {&lt;BR /&gt;style: Enums.SimpleLineSymbolStyleSolid&lt;BR /&gt;color: "blue"&lt;BR /&gt;width: 1&lt;BR /&gt;antiAlias: true&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;SimpleLineSymbol {&lt;BR /&gt;id: line_symbol_path&lt;BR /&gt;style: Enums.SimpleLineSymbolStyleSolid&lt;BR /&gt;color: "yellow"&lt;BR /&gt;width: 4&lt;BR /&gt;antiAlias: true&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;PictureMarkerSymbol {&lt;BR /&gt;id : pictureMarkerSymbolBorder&lt;BR /&gt;url : "../ressource/marqueur_rouge.png"&lt;BR /&gt;width : 60&lt;BR /&gt;height : 60&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;PictureMarkerSymbol {&lt;BR /&gt;id : pictureMarkerSymbolBuffer&lt;BR /&gt;url : "../ressource/marqueur_bleu.png"&lt;BR /&gt;width : 60&lt;BR /&gt;height : 60&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;PictureMarkerSymbol {&lt;BR /&gt;id : pictureMarkerSymbolStarter&lt;BR /&gt;url : "../ressource/marqueur_jaune.png"&lt;BR /&gt;width : 20&lt;BR /&gt;height : 20&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;PointBuilder {&lt;BR /&gt;id: ptBuilder&lt;BR /&gt;spatialReference: SpatialReference { wkid: 4326 }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function createGraphic(geometry, symbol) {&lt;BR /&gt;console.log("create graphic debut")&lt;/P&gt;&lt;P&gt;//I suppose, the line create the crash (beacause ofen the crash, the line "create graphic debut" it's display&lt;BR /&gt;const graphic = ArcGISRuntimeEnvironment.createObject("Graphic");&lt;BR /&gt;console.log("1")&lt;BR /&gt;graphic.geometry = geometry;&lt;BR /&gt;console.log("2")&lt;BR /&gt;graphic.symbol = symbol;&lt;BR /&gt;console.log("create graphic fin")&lt;BR /&gt;return graphic;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function reset()&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;console.log("reset")&lt;BR /&gt;map.changer = false;&lt;BR /&gt;map.animer=false;&lt;BR /&gt;animation.running=false&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function viderPoint (changeParcelle)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;console.log("vider")&lt;BR /&gt;graphicsOverlay.graphics.clear()&lt;/P&gt;&lt;P&gt;if (map.polygon_buffer &amp;amp;&amp;amp; map.polygon_contour)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;map.polygon_buffer.destroy()&lt;BR /&gt;map.polygon_contour.destroy()&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;map.listPolygonContour = [];&lt;BR /&gt;map.listPolyline = []&lt;/P&gt;&lt;P&gt;map.polygon_contour = Qt.createQmlObject('&lt;BR /&gt;import QtQuick 2.0&lt;BR /&gt;import QtQuick.Window 2.0&lt;BR /&gt;import QtQuick.Controls 2.2&lt;BR /&gt;import QtPositioning 5.12&lt;BR /&gt;import QtLocation 5.12&lt;BR /&gt;import Esri.ArcGISRuntime 100.14&lt;BR /&gt;PolygonBuilder {&lt;BR /&gt;id: polygon_contour_1&lt;BR /&gt;spatialReference: SpatialReference {wkid: 4326}&lt;BR /&gt;}',qmlMap)&lt;/P&gt;&lt;P&gt;//console.log(map.polygon_contour)&lt;/P&gt;&lt;P&gt;map.polygon_buffer = Qt.createQmlObject('&lt;BR /&gt;import QtQuick 2.0&lt;BR /&gt;import QtQuick.Window 2.0&lt;BR /&gt;import QtQuick.Controls 2.2&lt;BR /&gt;import QtPositioning 5.12&lt;BR /&gt;import QtLocation 5.12&lt;BR /&gt;import Esri.ArcGISRuntime 100.14&lt;BR /&gt;PolygonBuilder {&lt;BR /&gt;id: polygon_contour_2&lt;BR /&gt;spatialReference: SpatialReference {wkid: 4326}&lt;BR /&gt;}',qmlMap, "dynamicSnippet1" );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (changeParcelle)&lt;BR /&gt;{&lt;BR /&gt;map.changer = false;&lt;BR /&gt;ptBuilder.setXY(2.3522219,48.856614);&lt;BR /&gt;//ptBuilder.setXY(0,0);&lt;BR /&gt;map.setViewpointCenterAndScale(ptBuilder.geometry, 50000000.0);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function modifPoint(lat,log)&lt;BR /&gt;{&lt;BR /&gt;console.log("modif pooint")&lt;BR /&gt;console.log("change : " + lat +" "+ log)&lt;BR /&gt;animation.running=false&lt;BR /&gt;map.changer = false&lt;BR /&gt;/*map.mapItems[map.item-1].opacity= 1&lt;BR /&gt;map.mapItems[map.item-1].coordinate = QtPositioning.coordinate(lat, log)*/&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function addPointParcelle(lat, log,val)&lt;BR /&gt;{&lt;BR /&gt;console.log("debut add parcelle")&lt;BR /&gt;if (map.polygon_contour_obj)&lt;BR /&gt;{&lt;BR /&gt;var index = graphicsOverlay.graphics.indexOf(map.polygon_contour_obj);&lt;BR /&gt;if (index !== -1)&lt;BR /&gt;{&lt;BR /&gt;graphicsOverlay.graphics.removeOne(map.polygon_contour_obj)&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;map.polygon_contour.addPointXY(log,lat);&lt;BR /&gt;map.polygon_contour_obj = createGraphic(map.polygon_contour.geometry, polygon_fill_symbol_buffer_contour);&lt;BR /&gt;graphicsOverlay.graphics.append(map.polygon_contour_obj);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//lat = lat +projectedPoint.y&lt;BR /&gt;var marqueuradd = Qt.createQmlObject('&lt;BR /&gt;import QtQuick 2.0&lt;BR /&gt;import QtQuick.Window 2.0&lt;BR /&gt;import QtQuick.Controls 2.2&lt;BR /&gt;import QtPositioning 5.12&lt;BR /&gt;import QtLocation 5.12&lt;BR /&gt;import Esri.ArcGISRuntime 100.14&lt;BR /&gt;Point {&lt;BR /&gt;id: point_add&lt;BR /&gt;x: '+log+'&lt;BR /&gt;y: '+lat+'&lt;BR /&gt;spatialReference: SpatialReference {wkid: 4326}&lt;/P&gt;&lt;P&gt;}',qmlMap)&lt;BR /&gt;var point_graphic = createGraphic(marqueuradd, pictureMarkerSymbolBorder);&lt;BR /&gt;graphicsOverlay.graphics.append(point_graphic);&lt;/P&gt;&lt;P&gt;map.listPolygonContour.push([log,lat,point_graphic])&lt;/P&gt;&lt;P&gt;map.tot = map.tot + 1&lt;BR /&gt;console.log("fin add parcelle")&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;function addPointParcelleBufferiser(lat, log)&lt;BR /&gt;{&lt;BR /&gt;console.log("debut add buffer")&lt;BR /&gt;if (map.polygon_buffer_obj)&lt;BR /&gt;{&lt;BR /&gt;var index = graphicsOverlay.graphics.indexOf(map.polygon_buffer_obj);&lt;BR /&gt;if (index !== -1)&lt;BR /&gt;{&lt;BR /&gt;graphicsOverlay.graphics.removeOne(map.polygon_buffer_obj)&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;map.polygon_buffer.addPointXY(log,lat);&lt;BR /&gt;map.polygon_buffer_obj = createGraphic(map.polygon_buffer.geometry, polygon_fill_symbol_buffer);&lt;BR /&gt;graphicsOverlay.graphics.append(map.polygon_buffer_obj);&lt;/P&gt;&lt;P&gt;//polygoneBufferiser.addCoordinate(QtPositioning.coordinate(lat,log))&lt;BR /&gt;//map.addMapItem(polygoneBufferiser)&lt;/P&gt;&lt;P&gt;var marqueuradd = Qt.createQmlObject('&lt;BR /&gt;import QtQuick 2.0&lt;BR /&gt;import QtQuick.Window 2.0&lt;BR /&gt;import QtQuick.Controls 2.2&lt;BR /&gt;import QtPositioning 5.12&lt;BR /&gt;import QtLocation 5.12&lt;BR /&gt;import Esri.ArcGISRuntime 100.14&lt;BR /&gt;Point {&lt;BR /&gt;id: point_add'+map.tot+'&lt;BR /&gt;x: '+log+'&lt;BR /&gt;y: '+lat+'&lt;BR /&gt;spatialReference: SpatialReference {wkid: 4326}&lt;/P&gt;&lt;P&gt;}',qmlMap)&lt;/P&gt;&lt;P&gt;var point_graphic = createGraphic(marqueuradd, pictureMarkerSymbolBuffer);&lt;BR /&gt;graphicsOverlay.graphics.append(point_graphic);&lt;BR /&gt;map.tot = map.tot + 1&lt;/P&gt;&lt;P&gt;console.log("fin add buffer")&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function setCenter(lat,log)&lt;BR /&gt;{&lt;BR /&gt;console.log("cset center")&lt;BR /&gt;map.changer = false;&lt;BR /&gt;ptBuilder.setXY(lat, log);&lt;BR /&gt;map.setViewpointCenterAndScale(ptBuilder.geometry, 10000.0);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;function clearParcours()&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;console.log("clear parcours")&lt;BR /&gt;while (map.listPolyline.length &amp;gt; 0)&lt;BR /&gt;{&lt;BR /&gt;var elem = map.listPolyline.pop()&lt;BR /&gt;graphicsOverlay.graphics.removeOne(elem)&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function addLine (lat1,log1, lat2,log2)&lt;BR /&gt;{&lt;BR /&gt;console.log("add line")&lt;BR /&gt;//console.log("ok");&lt;BR /&gt;console.log ("lat1 : " + lat1 +", log 1 : "+ log1 + ", lat2 : "+lat2 + ",log 2 : " + log2);&lt;BR /&gt;if(map.tot &amp;gt; 9)&lt;BR /&gt;{&lt;BR /&gt;map.tot = 0;&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;map.tot++;&lt;BR /&gt;}&lt;BR /&gt;const line = {"paths":[[[log1,lat1],[log2,lat2]]],"spatialReference":{"wkid":4326}}&lt;BR /&gt;const line1 = ArcGISRuntimeEnvironment.createObject("Polyline", {"json": line });&lt;BR /&gt;const line_graphic = createGraphic(line1, line_symbol_path);&lt;BR /&gt;console.log(line_graphic)&lt;BR /&gt;map.listPolyline.push(line_graphic)&lt;BR /&gt;graphicsOverlay.graphics.append(line_graphic);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function faireClignoterPoint(lat,log)&lt;BR /&gt;{&lt;BR /&gt;console.log("cligbotter")&lt;BR /&gt;console.log(" rechercher : lat " + lat + "log " + log);&lt;BR /&gt;map.item = 0;&lt;BR /&gt;var trouver = false&lt;BR /&gt;while (map.listPolygonContour.length &amp;gt; map.item &amp;amp;&amp;amp; !trouver)&lt;BR /&gt;{&lt;BR /&gt;console.log("lat " + map.listPolygonContour[map.item][0] + "log " + map.listPolygonContour[map.item][1]);&lt;BR /&gt;//console.log("val : "+ map.mapItems[i].coordinate.latitude + ' ' + map.mapItems[i].coordinate.longitude );&lt;BR /&gt;if (map.listPolygonContour[map.item][1] === lat &amp;amp;&amp;amp; map.listPolygonContour[map.item ][0] === log)&lt;BR /&gt;{&lt;BR /&gt;console.log("trouver",map.listPolygonContour[map.item][2])&lt;BR /&gt;trouver = true;&lt;BR /&gt;map.changer = true;&lt;BR /&gt;console.log(map.listPolygonContour[map.item][2].visible )&lt;/P&gt;&lt;P&gt;//map.polygon_contour_obj[0].opacity = 2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;animation1.target = map.listPolygonContour[map.item][2];&lt;BR /&gt;animation2.target = map.listPolygonContour[map.item][2];&lt;BR /&gt;animation3.target = map.listPolygonContour[map.item][2];&lt;BR /&gt;animation4.target = map.listPolygonContour[map.item][2];&lt;BR /&gt;//console.log("activer suite");&lt;BR /&gt;animation.running=false&lt;BR /&gt;animation.running=true&lt;BR /&gt;// console.log("activer fin");&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;map.changer = false;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;map.item = map.item + 1;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function pointDebut(lat,log)&lt;BR /&gt;{&lt;BR /&gt;console.log("point debut")&lt;BR /&gt;var marqueuradd = Qt.createQmlObject('&lt;BR /&gt;import QtQuick 2.0&lt;BR /&gt;import QtQuick.Window 2.0&lt;BR /&gt;import QtQuick.Controls 2.2&lt;BR /&gt;import QtPositioning 5.12&lt;BR /&gt;import QtLocation 5.12&lt;BR /&gt;import Esri.ArcGISRuntime 100.14&lt;BR /&gt;Point {&lt;BR /&gt;id: point_add&lt;BR /&gt;x: '+log+'&lt;BR /&gt;y: '+lat+'&lt;BR /&gt;spatialReference: SpatialReference {wkid: 4326}&lt;/P&gt;&lt;P&gt;}',qmlMap)&lt;BR /&gt;var point_graphic = createGraphic(marqueuradd, pictureMarkerSymbolStarter);&lt;BR /&gt;graphicsOverlay.graphics.append(point_graphic);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function afficherPointDebut(lat,log)&lt;BR /&gt;{&lt;BR /&gt;console.log("cpoint debut bis")&lt;BR /&gt;var marqueuradd = Qt.createQmlObject('&lt;BR /&gt;import QtQuick 2.0&lt;BR /&gt;import QtQuick.Window 2.0&lt;BR /&gt;import QtQuick.Controls 2.2&lt;BR /&gt;import QtPositioning 5.12&lt;BR /&gt;import QtLocation 5.12&lt;BR /&gt;import Esri.ArcGISRuntime 100.14&lt;BR /&gt;Point {&lt;BR /&gt;id: point_add&lt;BR /&gt;x: '+log+'&lt;BR /&gt;y: '+lat+'&lt;BR /&gt;spatialReference: SpatialReference {wkid: 4326}&lt;/P&gt;&lt;P&gt;}',qmlMap)&lt;BR /&gt;var point_graphic = createGraphic(marqueuradd, pictureMarkerSymbolStarter);&lt;BR /&gt;graphicsOverlay.graphics.append(point_graphic);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function subButton()&lt;BR /&gt;{&lt;BR /&gt;console.log("sub bouton")&lt;BR /&gt;buttonRedo.destroy();&lt;BR /&gt;buttonUndo.destroy();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;SequentialAnimation{&lt;BR /&gt;id: animation&lt;BR /&gt;running: false&lt;BR /&gt;loops: Animation.Infinite&lt;BR /&gt;PropertyAnimation {&lt;BR /&gt;id: animation1&lt;BR /&gt;//target: rect&lt;BR /&gt;to:0&lt;BR /&gt;properties: "visible"&lt;BR /&gt;duration: 100&lt;BR /&gt;}&lt;BR /&gt;PropertyAnimation {&lt;BR /&gt;id: animation2&lt;BR /&gt;//target: rect&lt;BR /&gt;to:0&lt;BR /&gt;properties: "visible"&lt;BR /&gt;duration: 300&lt;BR /&gt;}&lt;BR /&gt;PropertyAnimation {&lt;BR /&gt;id: animation3&lt;BR /&gt;//target: rect&lt;BR /&gt;to:1&lt;BR /&gt;properties: "visible"&lt;BR /&gt;duration: 100&lt;BR /&gt;}&lt;BR /&gt;PropertyAnimation {&lt;BR /&gt;id: animation4&lt;BR /&gt;//target: rect&lt;BR /&gt;to:1&lt;BR /&gt;properties: "visible"&lt;BR /&gt;duration: 300&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 01 Jun 2022 08:03:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1178495#M4580</guid>
      <dc:creator>VincentB38</dc:creator>
      <dc:date>2022-06-01T08:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Crash with sdk when i add elements</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1178727#M4582</link>
      <description>&lt;P&gt;Bonjour&lt;/P&gt;&lt;P&gt;Il y a eu un problème lors de la publication de votre code, tout a été traduit en français. Pouvez-vous reposter votre code ?&lt;/P&gt;&lt;P&gt;Merci&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 18:36:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1178727#M4582</guid>
      <dc:creator>GuillaumeBelz</dc:creator>
      <dc:date>2022-05-31T18:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Crash with sdk when i add elements</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1178896#M4585</link>
      <description>&lt;P&gt;I'm sorry, i fixe it !&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 07:45:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1178896#M4585</guid>
      <dc:creator>VincentB38</dc:creator>
      <dc:date>2022-06-01T07:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Crash with sdk when i add elements</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1179771#M4592</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/589362"&gt;@VincentB38&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;Thanks for sharing your code. Unfortunately we have been unable to reproduce the issue. Could you provide us with more information, for example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Instructions outlining how we can reproduce the issue.&lt;/LI&gt;&lt;LI&gt;A small code snippet that we can use to reproduce the crash.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 11:53:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1179771#M4592</guid>
      <dc:creator>AndrewBladon</dc:creator>
      <dc:date>2022-06-03T11:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Crash with sdk when i add elements</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1182285#M4594</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/524044"&gt;@AndrewBladon&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I can't share more code because it's a complete application and i don’t share more. But, i can try to add informations&lt;/P&gt;&lt;P&gt;For create the bug, i use ESRI on three QQuickWidget, on diffierent tab on tabWidget. I realize many action on tab. I change and i try to realize other action (like add point, sub point, delete every point "vider()" etc .) so, after i realize this, my application crash...&lt;/P&gt;&lt;P&gt;I realise different tests with the esri plugin (the version on QT without the sdk) and, i don't have any problem. I change for the sdk esri and, my application crash... Today, i'm not really sure, but is most possible it's esri sdk. I mean it's overflow...&lt;BR /&gt;&lt;BR /&gt;I realize other test, and, after, i can suppose, the crash is in link with the polygone creation or display.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:12:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1182285#M4594</guid>
      <dc:creator>VincentB38</dc:creator>
      <dc:date>2022-06-14T09:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Crash with sdk when i add elements</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1184993#M4606</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/589362"&gt;@VincentB38&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for providing the additional information. We understand that you have a Qt Widgets application and have embedded a QML file that uses the Runtime Qt API for QML in your application using the QQuickWidget class.&lt;/P&gt;&lt;P&gt;Common programming patterns used with the Runtime Qt API are summarised in the &lt;A href="https://developers.arcgis.com/qt/programming-patterns/best-practices/#map-and-scene-view-options" target="_blank" rel="noopener"&gt;Map and Scene View Options&lt;/A&gt;&amp;nbsp;table. As shown,&amp;nbsp;for Qt Widgets applications we typically use widgets classes in our C++ API (e.g.&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-mapgraphicsview.html" target="_blank" rel="noopener"&gt;MapGraphicsView&lt;/A&gt;).&amp;nbsp;Using the C++ API allows the business logic for an application to be written with C++. The C++ API can also be combined with a Qt Quick interface (e.g. &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-mapquickview.html" target="_self"&gt;MapQuickView&lt;/A&gt;), enabling QML components to be used with C++ business logic. The QML API is commonly used with Qt Quick based apps.&lt;/P&gt;&lt;P&gt;Is there a reason that you have chosen to use the QML API with your Qt Widgets application? Are you able to consider trying one of the more common patterns instead?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 08:50:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1184993#M4606</guid>
      <dc:creator>AndrewBladon</dc:creator>
      <dc:date>2022-06-22T08:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Crash with sdk when i add elements</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1186061#M4607</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/524044"&gt;@AndrewBladon&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank's for you answer. I try to realise this solution. I used QML because differents tutorials recomand to use this (ofen i use ESRI SDK) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After many developpement houres, i change my solution, i use Layout for add dynamicly QWidget. After this, i use the same functions but with the C++ SDK. Now , It’s Time to fix the bug but and other probleme. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But i have a little probleme with my development. indeed, i would like animate the point whene the user select this (in the QML i’ve done this) but, i don't know how to do for realising this...&amp;nbsp; It's verry importante for users... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank's for your answer ! I can move !&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 15:23:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1186061#M4607</guid>
      <dc:creator>VincentB38</dc:creator>
      <dc:date>2022-06-24T15:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Crash with sdk when i add elements</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1186778#M4611</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/589362"&gt;@VincentB38&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;From your message I understand that you have managed to find a way to resolve the crash that you reported. We are pleased to hear this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;I also understand that you are trying to use the C++ API to highlight a point that is selected by the user. This can be done by:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Performing a &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-geoview.html#identifyLayers-1" target="_blank" rel="noopener"&gt;GeoView::identifyLayers&lt;/A&gt; operation to find features near to the point clicked by the user.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Using the &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-featurelayer.html#selectFeatures" target="_blank" rel="noopener"&gt;FeatureLayer::selectFeatures&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;method to select these features.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;&lt;SPAN&gt;An example of this can be seen in the C++ &lt;STRONG&gt;Feature layer selection&lt;/STRONG&gt; sample, which can be accessed via the &lt;A href="https://github.com/Esri/arcgis-runtime-samples-qt/tree/main/ArcGISRuntimeSDKQt_CppSamples/Features/FeatureLayerSelection" target="_blank" rel="noopener"&gt;qt samples repository&lt;/A&gt; or using the &lt;A href="https://www.arcgis.com/home/search.html?t=content&amp;amp;q=tags%3A%22QtSampleViewer%22" target="_blank" rel="noopener"&gt;Qt C++ Sample Viewer Application&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;I hope this helps you with the next stage of your work!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 14:56:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1186778#M4611</guid>
      <dc:creator>AndrewBladon</dc:creator>
      <dc:date>2022-06-27T14:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Crash with sdk when i add elements</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1189167#M4621</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/524044"&gt;@AndrewBladon&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for your help. After reasearch, i create an animation with QTimer and i set visibility's object for create animation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It's work ! I could change QML with c++.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 13:20:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/crash-with-sdk-when-i-add-elements/m-p/1189167#M4621</guid>
      <dc:creator>VincentB38</dc:creator>
      <dc:date>2022-07-04T13:20:55Z</dc:date>
    </item>
  </channel>
</rss>

