[Qt-qml] Accessing dynamic properties
Stephen Kelly
steveire at gmail.com
Tue Sep 14 17:50:42 CEST 2010
jamey.hicks at nokia.com wrote:
>
> If variable o is bound to your object, then this will do the trick:
> o.foo
>
> To update it:
> o.foo = newvalue;
>
> Anecdotal evidence suggests that you cannot assign new dynamic properties
> to your object from QML.
>
I think that's documented too, but I don't know why it is so. I used to
think it was because there could be no NOTIFY signal specifically for such
properties, but an event filter for DynamicPropertyChangeEvent or whatever
it's called would work around that.
All the best,
Steve.
More information about the Qt-qml
mailing list