[Qt-qml] Objects get mangled into QVariantMaps when passed from QtScript to QML functions... why?

Bart Kelsey elbarto at gmail.com
Mon Nov 29 15:54:45 CET 2010


My current project is a game engine that uses QML for the UI and QtScript
for game scripting (video at http://www.youtube.com/watch?v=SG5p-qLARrw ).
At any rate, while it's possible to call functions on QML elements from
QtScript, when I try to pass an object to that function (even a
QDeclarativeItem), it gets mangled into a QVariantMap (as opposed to a
reference to the actual object that I passed, which is what I need).  Why is
this?  Is there any way I can stop it from happening and pass the object as
a reference?



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


More information about the Qt-qml mailing list