<div dir="ltr"><div>I don't know if this can help, but Javascript and QML work in separate process, and because of this any variable change on JS to be read in QML (or vice-versa) should be readed using a onXXXChanged (XXX bein the variable name).<br><br></div>I had a similar problem with reading values from a JSON object, where the QML was returning -1 from a variable where the value number, 100 for example, was already lodaded.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-19 12:50 GMT+00:00 Andrey Kozhevnikov <span dir="ltr"><<a href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
Can someone help me to understand why this simple code working bad: <a href="https://gist.github.com/CODeRUS/3911cfe69ab9866e99da" target="_blank">https://gist.github.com/<u></u>CODeRUS/3911cfe69ab9866e99da</a><br>
Just click on "Add" button and compare input and result id inside Object. It's different.<br>
<br>
Best regards,<br>
Andrey<br>
______________________________<u></u>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.<u></u>sailfishos.org</a><br>
</blockquote></div><br></div>