When adding a new item in the ListView from UI, the item's name can't display.
But if I flick on the ListView up and down, the name comes.
Meantime, in delegate module, it says. "Unable to assign [undefined] to QString text" where "text" should display the item's “name"
This is why? How to display it automatically?
I've tried the sync() method of ListMode, but doesn't work.
Code:Rectangle { color: "white" width: 200 height: 300 ListModel { id: fruitModel ListElement { name: "Apple" cost: 2.45 } } ListView { anchors.fill: parent model: fruitModel delegate: Component { ... } ListModel { id: listModel } } }





