[Qt-qml] Getting the id

ext-tuukka.m.lahtela at nokia.com ext-tuukka.m.lahtela at nokia.com
Fri Nov 5 07:59:00 CET 2010


Hi!

This is somewhat related to the "Find by id" thread. Is it somehow possible to get id of the of a qml element. It would be useful for our automated testing tool.

Rectangle {
    id: myRect
    objectName: "theRectangle"
}

So basically I would need to get the id of the element in c++ code (for example  the myRect value in the example qml).  I do not seem to find a way to do this.

-       Tuukka Lahtela



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20101105/8bca9c6f/attachment.html 


More information about the Qt-qml mailing list