[Qt-qml] Models and binding values

michael.brasser at nokia.com michael.brasser at nokia.com
Fri Jul 23 08:37:54 CEST 2010


Sure, feel free to add a comment on the bug. if you can include the code to reproduce the swapping that would be helpful.

Regards,
Michael

On 23/07/2010, at 4:23 PM, Westbrook Alan (Nokia-MS/MtView) wrote:

Thanks Michael!

I am an idiot for missing that method.

I'll make sure I am a bit more exhaustive in my search before posting again. Although I suppose if I found that and it worked, this bug may have gone unnoticed for a while longer.

What's even crazier, is that even if I swapped the model out, and back in again, the new value was not showing up.

Shall I add an addendum to the bug?

Alan

On Jul 22, 2010, at 8:26 PM, Brasser Michael (Nokia-MS-Qt/Brisbane) wrote:

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/9e154ee6/attachment.html 


More information about the Qt-qml mailing list