[Qt-qml] How to assign an object id?

mathias.malmqvist at nokia.com mathias.malmqvist at nokia.com
Tue Dec 28 01:45:02 CET 2010


Quick question; anyone know if it's possible to give an element created by calling createObject() on a component an id?

The documentation only says how to give it a parent:
http://doc.qt.nokia.com/4.7-snapshot/qml-component.html#createObject-method
and ids can simply be assigned like other properties.


Cheers
Mathias


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20101228/2ea72bd9/attachment.html 


More information about the Qt-qml mailing list