On Tue, Dec 21, 2010 at 4:39 PM, Ville M. Vainio <[email protected]> wrote:
> If we don't get a "direct" syntax for this, I can envision using hacks like
>
> QtObject {
> id: root
>
> ...
>
> setPriv(root, "myobj", obj)
>
> ...
>
> priv(root, "myobj").doStuff()
>
> ...
> }
I present such a hack at:
http://wiki.forum.nokia.com/index.php/Store_JavaScript_object_references_in_QML_objects
If anyone knows a faster way to get identity hash for a QML object
(like python's id(myobject) ) than toString() without using C++, let
me know.
--
Ville M. Vainio @@ Forum Nokia
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml