How to refresh listview in QML
Unsolved
QML and Qt Quick
-
Why do you think you need to refresh the view? It should automatically get updated on model changes.
-
The documentation tells that :
Responding to changes in the model is usually batched to happen only once per frame. This means that inside script blocks it is possible for the underlying model to have changed, but the ListView has not caught up yet.
So this method forces the ListView to immediately respond to any outstanding changes in the model.