[Qt-qml] Accessing elements created with js

Anton Alferov casper.zx at gmail.com
Fri Jul 9 10:09:19 CEST 2010


Hi,

Is there any way to access element by it's id if that element was created
using js?
For example, in the attached sample element rect1 created with js, and the
rect2 one tries to use it by id but unsuccessfully - the rect1 treats as
undefined object.

Thanks in advance,
Anton.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100709/02197203/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.qml
Type: application/octet-stream
Size: 402 bytes
Desc: not available
Url : http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100709/02197203/attachment.obj 


More information about the Qt-qml mailing list