[Qt-qml] Cannot store javascript object in property, why?
Ville M. Vainio
vivainio at gmail.com
Fri Dec 17 20:26:58 CET 2010
On Fri, Dec 17, 2010 at 3:08 PM, Petrus Lundqvist
<petrus.lundqvist at nokia.com> wrote:
> You can do this with:
>
> property variant myobj
>
> .. and then set it to a JS object (or array). But the problem is that if
> you now try to modify myobj you'll find that it has become immutable.
I've understood that storing a js object in "property variant" copies
the object and converts to QVariantMap, throwing stuff like prototype
chain away.
What I want is just a reference to the original javascript object.
--
Ville M. Vainio @@ Forum Nokia
More information about the Qt-qml
mailing list