Thanks for your hints.
I would like to comment that I modified the onCompleted() method as follows and seems to work but I do not like to use an additional empty ListModel as a buffer.
ListModel
{
id: tempModel
}
...
Component.onCompleted: {
idTable.addColumn(Qt.createQmlObject(idTable.strTestColumn,idTable,'firstObject'))
var ii= 0
//it starts at zero "0"
for( ii=0; ii < libraryModel.count;ii++)
{
libraryModel.setProperty(ii, "buyer", "Counter");
console.log(libraryModel.get(ii).buyer + "\n");
}
for( ii=0; ii < libraryModel.count;ii++)
{
tempModel.append(libraryModel.get(ii));
}
idTable.model=tempModel;
}
↧










