<div dir="ltr">Dear Anton!<div><br></div><div>Please look at following example:</div><div><br></div><div>----------------------------------------------- main.qml</div><div><div>import QtQuick 1.1</div><div><br></div><div>Rectangle {</div><div>  anchors.fill: parent</div><div>  color: "green"</div><div>  </div><div>  Subitem {</div><div>    id: qSome</div><div>    coords: [5,2,3]</div><div>  }</div><div>}</div></div><div><br></div><div>----------------------------------------------- Subitem.qml</div><div><div><div>Item {</div><div>    id: origin</div><div>    property var coords: parent.coords </div><div>    // maybe parent will have coords property? </div><div>    // if not, we consider that implementor of Subitem object will specify coords directly</div><div>    // see above, we set coords property to [5,2,3]</div><div>    </div><div>    property var positions: make()</div><div><br></div><div>    function make() {</div><div>        console.log("called make, coords=",origin.coords );</div><div>        return origin.coords;</div><div>    }</div><div>    </div><div>}</div></div>
<div>-----------------------------------------------<br></div><div><br></div><div>The result of that code should be seen in console.</div><div>We see: </div><div><br></div><div>called make, coords= undefined</div><div><br></div><div>But the correct result should be:</div><div><br></div><div>called make, coords= [5,2,3]<br></div><div><br></div><div>Maybe, I misunderstand something?</div><div><br></div><div>Best Regards,</div><div>Pavel Vasev</div></div></div>