[Qt-qml] Models and binding values

michael.brasser at nokia.com michael.brasser at nokia.com
Fri Jul 23 05:26:52 CEST 2010


Hi,

On 23/07/2010, at 6:19 AM, ext alan.westbrook at nokia.com<mailto:alan.westbrook at nokia.com> wrote:


  onClicked: { fruitModel.get(0).name = "bob"; console.log("ListElement.name<http://ListElement.name/>: " + fruitModel.get(0).name) }


The elements created by the delegate do not update when the model data is changed.

Is this a bug, or am I missing something?

The above is a bug; I've added http://bugreports.qt.nokia.com/browse/QTBUG-12363. Until it's fixed, you can use fruitModel.setProperty(0, "name", "bob") instead.

Regards,
Michael

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100723/06c8d631/attachment.html 


More information about the Qt-qml mailing list