[Qt-qml] Objects get mangled into QVariantMaps when passed from QtScript to QML functions... why?
Kent Hansen
kent.hansen at nokia.com
Tue Nov 30 09:47:56 CET 2010
Hi,
Den 29. nov. 2010 15:54, skrev ext Bart Kelsey:
> 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?
Could you provide a small compileable application that demonstrates the
issue?
Kent
More information about the Qt-qml
mailing list