[Qt5-feedback] [Qt-qml] Storing javascript references in QML properties, in Qt5

Jason H scorp1us at yahoo.com
Tue Jun 7 15:20:26 CEST 2011


Sort of related, will we be able to explore C++ objects as you would javascript objects?

I remember running into a use case where I was using a XML model in QML and could only get the XmlNodes. I could not navigate the XML hierarchy in code.  I ran into a black hole when I tried to get the XML child nodes of a XmlNode.



________________________________
From: Ville M. Vainio <vivainio at gmail.com>
To: aaron.kennedy at nokia.com
Cc: Qt-qml at qt.nokia.com; qt5-feedback at qt.nokia.com
Sent: Tuesday, June 7, 2011 7:34 AM
Subject: Re: [Qt-qml] Storing javascript references in QML properties, in Qt5

Thank you. Do you have a pointer to the details of the fix? Or will it
just be about "property variant" storing the reference in expected
fashion?

On Tue, Jun 7, 2011 at 10:50 AM,  <aaron.kennedy at nokia.com> wrote:
> Hi,
>
> This will be fixed in QtQuick 2.
>
> Cheers,
>
> Aaron
>
> On 07/06/2011, at 5:32 PM, ext Ville M. Vainio wrote:
>
>> Re-sending to qt-qml mailing list (perhaps it should be used instead
>> of Qt5 feedback for QML language discussion?
>>
>> On Sun, Jun 5, 2011 at 2:25 PM, Ville M. Vainio <vivainio at gmail.com> wrote:
>>> Currently, it's not possible to store references to javascript objects
>>> (Array, Object, functions...) in QML properties (yes, "propery
>>> variant" can't hold a js reference). I believe the rationale for this
>>> is that you can't use javascript references in property bindings.
>>>
>>> Will there be a fix for this in Qt Quick 2?
>>>
>> _______________________________________________
>> Qt-qml mailing list
>> Qt-qml at qt.nokia.com
>> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>
>
_______________________________________________
Qt-qml mailing list
Qt-qml at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt5-feedback/attachments/20110607/f23fa799/attachment.html 


More information about the Qt5-feedback mailing list