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 
[email protected]<mailto:[email protected]> 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



_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to