[Qt-qml] PROBLEM : "state" of object inside ListView does not update correctly
Francesco Nwokeka
francesco.nwokeka at gmail.com
Mon Jan 31 01:20:36 CET 2011
On Sunday 30 January 2011 18:19:25 jyrki.yli-nokari at nokia.com wrote:
> Use the setProperty
> http://doc.qt.nokia.com/4.7-snapshot/qml-listmodel.html#setProperty-method
> It's not an ordinary JavaScript object.
>
> I.e. Instead of
> "tagColumnModel.get( pos ).tagState = "newState"; "
> Do
> "tagColumnModel.setProperty(pos, "tagState", "newState"); "
Tried that, but it was a bit buggy. I solved the issue by going 100% on a c++ model and checking the
"state" ( a Q_PROPERTY ) from there.
More information about the Qt-qml
mailing list