Keep selection in a ListView when updating model
QML and Qt Quick
2
Posts
1
Posters
1.6k
Views
1
Watching
-
I'll be more detailed.
I have an XmlListModel and I show the data in a ListView. The ListView is selectable so I can select an element of the list.Sometimes (with a timer) I update the xml data of the model but every time I update I lose the current selection and the list scroll to the top.
Is there a way to avoid this problem?