[SailfishDevel] Javascript Object problem
Luis Manuel Ramos Da Costa
aliasbody at gmail.com
Fri Mar 20 11:55:12 UTC 2015
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).
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.
2015-03-19 12:50 GMT+00:00 Andrey Kozhevnikov <coderusinbox at gmail.com>:
> Hello!
>
> Can someone help me to understand why this simple code working bad:
> https://gist.github.com/CODeRUS/3911cfe69ab9866e99da
> Just click on "Add" button and compare input and result id inside Object.
> It's different.
>
> Best regards,
> Andrey
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.
> sailfishos.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20150320/e7747212/attachment.html>
More information about the Devel
mailing list