<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:EN-CA;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal">I’m having a weird behavior with Qml Shape that try to reuse the same ShapePath. I have declare a new ShapePath each time it work for all of them, but if I do multiple shape with the same shape path, it only draw the first one!?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Working multiple circle:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:olive;mso-fareast-language:EN-CA">import</span><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">
</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">QtQuick<span style="color:silver">
</span>2.12<o:p></o:p></span></p>
<p class="MsoNormal"><u><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">import QtQuick.Window 2.12</span></u><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal"><u><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">import QtQuick.Controls 2.5</span></u><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal"><u><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">import QtQuick.Shapes 1.12</span></u><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">Window<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">   
</span><span style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">id</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span><i>component</i><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">   
</span><span style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">width</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span>640<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">   
</span><span style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">height</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span>480<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">   
</span><span style="font-size:10.0pt;font-family:"Courier New";color:olive;mso-fareast-language:EN-CA">property</span><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:olive;mso-fareast-language:EN-CA">var</span><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">sections</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span>[{<span style="color:green">'x'</span>:<span style="color:silver"> </span>
10,<span style="color:silver"> </span><span style="color:green">'y'</span>:<span style="color:silver">
</span>10},<span style="color:silver"> </span>{<span style="color:green">'x'</span>:<span style="color:silver">
</span>30,<span style="color:silver"> </span><span style="color:green">'y'</span>:<span style="color:silver">
</span>30}]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">   
</span><span style="font-size:10.0pt;font-family:"Courier New";color:olive;mso-fareast-language:EN-CA">property</span><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:olive;mso-fareast-language:EN-CA">int</span><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">circleRadius</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span>5<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">   
</span><span style="font-size:10.0pt;font-family:"Courier New";color:purple;mso-fareast-language:EN-CA">Repeater</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">   
</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">       
</span><span style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">model</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span><i>sections</i><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">       
</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">Shape<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">       
</span><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">           
</span><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">x</span><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span><i>sections</i>[index].x<span style="color:silver"> </span>-<span style="color:silver">
</span><i>component</i>.circleRadius<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">           
</span><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">y</span><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span><i>sections</i>[index].y<span style="color:silver"> </span>+<span style="color:silver">
</span><i>component</i>.circleRadius<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">           
</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">ShapePath<span style="color:silver">
</span><span style="color:green">//</span><span style="color:silver"> </span><span style="color:green">Empty</span><span style="color:silver">
</span><span style="color:green">circle</span></span><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">           
</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">               
</span><span style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">strokeColor</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span><span style="color:green">"blue"</span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">               
</span><span style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">strokeWidth</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span>2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">               
</span><span style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">fillColor</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span><span style="color:green">"transparent"</span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">               
</span><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">PathArc<span style="color:silver">
</span>{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">                   
</span><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">x</span><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span>1;<span style="color:silver"> </span><span style="color:maroon">y</span>:<span style="color:silver">
</span>0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">                   
</span><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">radiusX</span><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span><i>component</i>.circleRadius<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">                   
</span><span style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">radiusY</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span><i>component</i>.circleRadius<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">                   
</span><span style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">useLargeArc</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span>true<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">               
</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">           
</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">           
</span><span style="font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:EN-CA">Component.onCompleted</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">:<span style="color:silver">
</span><i><span style="color:#0055AF">console</span></i>.log(x,y)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">       
</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:EN-CA">   
</span><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal">Only draw a single Shape:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre><span style="color:olive">import</span><span style="color:silver"> </span>QtQuick<span style="color:silver"> </span>2.12<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><u>import QtQuick.Window 2.12</u><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><u>import QtQuick.Controls 2.5</u><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><u>import QtQuick.Shapes 1.12</u><o:p></o:p></pre>
<pre style="-qt-paragraph-type:empty;-qt-block-indent:0"><o:p> </o:p></pre>
<pre style="-qt-block-indent:0">Window<o:p></o:p></pre>
<pre style="-qt-block-indent:0">{<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:maroon">id</span>:<span style="color:silver"> </span><i>component</i><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:maroon">width</span>:<span style="color:silver"> </span>640<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:maroon">height</span>:<span style="color:silver"> </span>480<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><o:p> </o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:olive">property</span><span style="color:silver"> </span><span style="color:olive">var</span><span style="color:silver"> </span><span style="color:maroon">sections</span>:<span style="color:silver"> </span>[{<span style="color:green">'x'</span>:<span style="color:silver"> </span>10,<span style="color:silver"> </span><span style="color:green">'y'</span>:<span style="color:silver"> </span>10},<span style="color:silver"> </span>{<span style="color:green">'x'</span>:<span style="color:silver"> </span>30,<span style="color:silver"> </span><span style="color:green">'y'</span>:<span style="color:silver"> </span>30}]<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:olive">property</span><span style="color:silver"> </span><span style="color:olive">int</span><span style="color:silver"> </span><span style="color:maroon">circleRadius</span>:<span style="color:silver"> </span>5<o:p></o:p></pre>
<pre style="-qt-paragraph-type:empty;-qt-block-indent:0"><o:p> </o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:green">ShapePath</span><span style="color:silver"> </span><span style="color:green">//</span><span style="color:silver"> </span><span style="color:green">Empty</span><span style="color:silver"> </span><span style="color:green">circle</span><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:green">{</span><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span><span style="color:green">id:</span><span style="color:silver"> </span><span style="color:green">path_</span><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span><span style="color:green">strokeColor:</span><span style="color:silver"> </span><span style="color:green">"blue"</span><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span><span style="color:green">strokeWidth:</span><span style="color:silver"> </span><span style="color:green">2</span><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span><span lang="FR" style="color:green">fillColor:</span><span lang="FR" style="color:silver"> </span><span lang="FR" style="color:green">"transparent"</span><span lang="FR"><o:p></o:p></span></pre>
<pre style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="FR"><o:p> </o:p></span></pre>
<pre style="-qt-block-indent:0"><span lang="FR" style="color:silver">        </span><span lang="FR" style="color:green">PathArc</span><span lang="FR" style="color:silver"> </span><span lang="FR" style="color:green">{</span><span lang="FR"><o:p></o:p></span></pre>
<pre style="-qt-block-indent:0"><span lang="FR" style="color:silver">            </span><span lang="FR" style="color:green">x:</span><span lang="FR" style="color:silver"> </span><span lang="FR" style="color:green">1;</span><span lang="FR" style="color:silver"> </span><span lang="FR" style="color:green">y:</span><span lang="FR" style="color:silver"> </span><span lang="FR" style="color:green">0</span><span lang="FR"><o:p></o:p></span></pre>
<pre style="-qt-block-indent:0"><span lang="FR" style="color:silver">            </span><span lang="FR" style="color:green">radiusX:</span><span lang="FR" style="color:silver"> </span><span lang="FR" style="color:green">component.circleRadius</span><span lang="FR"><o:p></o:p></span></pre>
<pre style="-qt-block-indent:0"><span lang="FR" style="color:silver">            </span><span lang="FR" style="color:green">radiusY:</span><span lang="FR" style="color:silver"> </span><span lang="FR" style="color:green">component.circleRadius</span><span lang="FR"><o:p></o:p></span></pre>
<pre style="-qt-block-indent:0"><span lang="FR" style="color:silver">            </span><span style="color:green">useLargeArc:</span><span style="color:silver"> </span><span style="color:green">true</span><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span><span style="color:green">}</span><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:green">}</span><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:purple">Repeater</span><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span>{<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span><span style="color:maroon">model</span>:<span style="color:silver"> </span><i>sections</i><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span>Shape<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span><span lang="FR">{<o:p></o:p></span></pre>
<pre style="-qt-block-indent:0"><span lang="FR" style="color:silver">            </span><span lang="FR" style="color:maroon">x</span><span lang="FR">:<span style="color:silver"> </span><i>sections</i>[index].x<span style="color:silver"> </span>-<span style="color:silver"> </span><i>component</i>.circleRadius<o:p></o:p></span></pre>
<pre style="-qt-block-indent:0"><span lang="FR" style="color:silver">            </span><span lang="FR" style="color:maroon">y</span><span lang="FR">:<span style="color:silver"> </span><i>sections</i>[index].y<span style="color:silver"> </span>+<span style="color:silver"> </span><i>component</i>.circleRadius<o:p></o:p></span></pre>
<pre style="-qt-block-indent:0"><span lang="FR" style="color:silver">            </span><span style="color:green">data:</span><span style="color:silver"> </span><span style="color:green">[path_]</span><o:p></o:p></pre>
<pre><span style="color:silver">            </span><span style="color:maroon">Component.onCompleted</span>:<span style="color:silver"> </span><i><span style="color:#0055AF">console</span></i>.log(x,y)<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span>}<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span>}<o:p></o:p></pre>
<pre style="-qt-block-indent:0">}<o:p></o:p></pre>
<pre style="-qt-paragraph-type:empty;-qt-block-indent:0"><o:p> </o:p></pre>
<p class="MsoNormal">Both print the log so both sections are rendered, but only one shape is draw.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This also work and draw 2 shapes:<o:p></o:p></p>
<pre><span style="color:olive">import</span><span style="color:silver"> </span>QtQuick<span style="color:silver"> </span>2.12<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><u>import QtQuick.Window 2.12</u><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><u>import QtQuick.Controls 2.5</u><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><u>import QtQuick.Shapes 1.12</u><o:p></o:p></pre>
<pre style="-qt-paragraph-type:empty;-qt-block-indent:0"><o:p> </o:p></pre>
<pre style="-qt-block-indent:0">Window<o:p></o:p></pre>
<pre style="-qt-block-indent:0">{<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:maroon">id</span>:<span style="color:silver"> </span><i>component</i><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:maroon">width</span>:<span style="color:silver"> </span>640<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:maroon">height</span>:<span style="color:silver"> </span>480<o:p></o:p></pre>
<pre><span style="color:silver">    </span><span style="color:olive">property</span><span style="color:silver"> </span><span style="color:olive">var</span><span style="color:silver"> </span><span style="color:maroon">sections</span>:<span style="color:silver"> </span>[{<span style="color:green">'x'</span>:<span style="color:silver"> </span>10,<span style="color:silver"> </span><span style="color:green">'y'</span>:<span style="color:silver"> </span>10},<span style="color:silver"> </span>{<span style="color:green">'x'</span>:<span style="color:silver"> </span>30,<span style="color:silver"> </span><span style="color:green">'y'</span>:<span style="color:silver"> </span>30}]<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:olive">property</span><span style="color:silver"> </span><span style="color:olive">int</span><span style="color:silver"> </span><span style="color:maroon">circleRadius</span>:<span style="color:silver"> </span>5<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><o:p> </o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span>PathArc<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span>{<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span><span style="color:maroon">id</span>:<span style="color:silver"> </span><i>pathArc_</i><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span><span lang="FR" style="color:maroon">x</span><span lang="FR">:<span style="color:silver"> </span>1;<span style="color:silver"> </span><span style="color:maroon">y</span>:<span style="color:silver"> </span>0<o:p></o:p></span></pre>
<pre style="-qt-block-indent:0"><span lang="FR" style="color:silver">        </span><span lang="FR" style="color:maroon">radiusX</span><span lang="FR">:<span style="color:silver"> </span><i>component</i>.circleRadius<o:p></o:p></span></pre>
<pre style="-qt-block-indent:0"><span lang="FR" style="color:silver">        </span><span lang="FR" style="color:maroon">radiusY</span><span lang="FR">:<span style="color:silver"> </span><i>component</i>.circleRadius<o:p></o:p></span></pre>
<pre style="-qt-block-indent:0"><span lang="FR" style="color:silver">        </span><span style="color:maroon">useLargeArc</span>:<span style="color:silver"> </span>true<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span>}<o:p></o:p></pre>
<pre style="-qt-paragraph-type:empty;-qt-block-indent:0"><o:p> </o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span><span style="color:purple">Repeater</span><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span>{<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span><span style="color:maroon">model</span>:<span style="color:silver"> </span><i>sections</i><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span>Shape<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span><span lang="FR">{<o:p></o:p></span></pre>
<pre style="-qt-block-indent:0"><span lang="FR" style="color:silver">            </span><span lang="FR" style="color:maroon">x</span><span lang="FR">:<span style="color:silver"> </span><i>sections</i>[index].x<span style="color:silver"> </span>-<span style="color:silver"> </span><i>component</i>.circleRadius<o:p></o:p></span></pre>
<pre style="-qt-block-indent:0"><span lang="FR" style="color:silver">            </span><span lang="FR" style="color:maroon">y</span><span lang="FR">:<span style="color:silver"> </span><i>sections</i>[index].y<span style="color:silver"> </span>+<span style="color:silver"> </span><i>component</i>.circleRadius<o:p></o:p></span></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">            </span>ShapePath<span style="color:silver"> </span><span style="color:green">//</span><span style="color:silver"> </span><span style="color:green">Empty</span><span style="color:silver"> </span><span style="color:green">circle</span><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">            </span>{<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">                </span><span style="color:maroon">strokeColor</span>:<span style="color:silver"> </span><span style="color:green">"blue"</span><o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">                </span><span style="color:maroon">strokeWidth</span>:<span style="color:silver"> </span>2<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">                </span><span style="color:maroon">fillColor</span>:<span style="color:silver"> </span><span style="color:green">"transparent"</span><o:p></o:p></pre>
<pre style="-qt-paragraph-type:empty;-qt-block-indent:0"><o:p> </o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">                </span><span lang="FR" style="color:maroon">pathElements</span><span lang="FR">:<span style="color:silver"> </span>[<i>pathArc_</i>]<o:p></o:p></span></pre>
<pre><span style="color:silver">            </span>}<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">            </span><span style="color:maroon">Component.onCompleted</span>:<span style="color:silver"> </span><i><span style="color:#0055AF">console</span></i>.log(x,y)<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">        </span>}<o:p></o:p></pre>
<pre style="-qt-block-indent:0"><span style="color:silver">    </span>}<o:p></o:p></pre>
<pre style="-qt-block-indent:0">}<o:p></o:p></pre>
<pre style="-qt-paragraph-type:empty;-qt-block-indent:0"><o:p> </o:p></pre>
<p class="MsoNormal">So it’s really ShapePath that cannot be reused, any link to the parent under the hood? only the first item get rendered. The shape are not set asynchronous, so it should not matter.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="595" style="width:446.55pt;background:white;border-collapse:collapse">
<tbody>
<tr>
<td width="406" valign="top" style="width:304.7pt;border:none;border-right:solid #0079AC 1.0pt;padding:0cm 7.5pt 0cm 0cm">
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;margin-bottom:12.0pt;text-align:center">
<span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#444444;mso-fareast-language:EN-CA"><br>
</span><span style="mso-fareast-language:EN-CA"><img width="396" height="102" style="width:4.125in;height:1.0625in" id="Picture_x0020_1" src="cid:image013.jpg@01D4E97B.43F16610" alt="36E56279"><o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;margin-bottom:12.0pt;text-align:center">
<span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#444444;mso-fareast-language:EN-CA">une compagnie 
</span><span style="mso-fareast-language:EN-CA"><img width="55" height="14" style="width:.5729in;height:.1458in" id="Picture_x0020_2" src="cid:image014.jpg@01D4E97B.43F16610"></span><span lang="FR" style="mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;margin-bottom:12.0pt;text-align:center">
<span lang="FR" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#444444;mso-fareast-language:EN-CA">RAPPROCHEZ LA DISTANCE</span><span lang="FR" style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
</td>
<td width="189" style="width:141.85pt;padding:0cm 0cm 0cm 0cm">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td width="305" valign="top" style="width:228.75pt;padding:0cm 0cm 3.75pt 7.5pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:18.75pt">
<b><span lang="FR-CA" style="font-size:14.0pt;font-family:"Arial",sans-serif;color:#073763;mso-fareast-language:EN-CA">Jérôme Godbout</span></b><b><span lang="FR-CA" style="font-size:14.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-CA"><br>
</span></b><span lang="FR-CA" style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-CA">Développeur Logiciel Sénior / <br>
Senior Software Developer</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:3.75pt 0cm 3.75pt 7.5pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#073763;mso-fareast-language:EN-CA">p:</span></b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#073763;mso-fareast-language:EN-CA"> </span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-CA">+1
 (418) 800-1073 ext.:109</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:3.75pt 0cm 3.75pt 7.5pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#073763;mso-fareast-language:EN-CA"><a href="http://www.amotus-solutions.com/" target="_blank"><span style="color:#1155CC">amotus.ca</span></a><br>
<a href="http://statum-iot.com/" target="_blank"><span style="color:#1155CC">statum-iot.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><a href="https://www.facebook.com/LesSolutionsAmotus/"><span style="color:windowtext;mso-fareast-language:EN-CA;text-decoration:none"><img border="0" width="10" height="10" style="width:.1041in;height:.1041in" id="Picture_x0020_3" src="cid:image015.png@01D4E97B.43F16610"></span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-CA"> </span><a href="https://www.linkedin.com/company/amotus-solutions/"><span style="color:windowtext;mso-fareast-language:EN-CA;text-decoration:none"><img border="0" width="10" height="10" style="width:.1041in;height:.1041in" id="Picture_x0020_4" src="cid:image016.png@01D4E97B.43F16610"></span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-CA"> </span><a href="https://twitter.com/AmotusSolutions"><span style="color:windowtext;mso-fareast-language:EN-CA;text-decoration:none"><img border="0" width="10" height="10" style="width:.1041in;height:.1041in" id="Picture_x0020_5" src="cid:image017.png@01D4E97B.43F16610"></span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-CA"> </span><a href="https://www.youtube.com/channel/UCoYpQgsmj1iJZyDjTQ3x8Ig"><span style="color:windowtext;mso-fareast-language:EN-CA;text-decoration:none"><img border="0" width="10" height="10" style="width:.1041in;height:.1041in" id="Picture_x0020_6" src="cid:image018.jpg@01D4E97B.43F16610"></span></a><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:3.75pt 0cm 3.75pt 7.5pt"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>