<div dir="ltr">Hi Anton!<div><br></div><div>Please consider the example:</div><div><br></div><div>*********************** main.qml</div><div><div>import QtQuick 2.3</div><div><br></div><div>RectWithFoo {</div><div> color: "green"</div><div><br></div><div> Text {</div><div> text: "foo="+foo</div><div> }</div><div>}</div><div>*********************** RectWithFoo.qml </div><div><div>import QtQuick 2.3</div><div>Rectangle {</div><div> property var foo: 15 </div><div>}</div></div><div>***********************</div><div><br></div><div>When I run this example via qmlscene of Qt project, all works.</div><div>When I run it via qmlweb, I get "foo is undefined" error during text eval.</div><div><br></div><div>I tried to "fix" it and failed, because I cannot understand how scope</div><div>variables (e.g. componentScope e.g. context) are collected..</div><div><br></div><div>Could you please explain, how and where context is gathered? </div><div><br></div><div>If I understand it, probably I will find the way how to insert "internal" </div><div>properties of component root object to that scope.</div><div><br></div><div><div><div class="gmail_signature">Best Regards,</div></div><div class="gmail_signature">Pavel</div>
</div></div></div>