ListView Update Data
Unsolved
QML and Qt Quick
-
hi i am using list view, when my data is updated, my list slips a little. How can I fix it?
-
@NullByte
Could it have something to do with the current index being modified when you change the model data? Something in the vein of:
https://forum.qt.io/topic/102039/listview-goes-up-when-model-updated -
@Diracsbracket this did not work for me I am doing the same operations but strangely going in different directions
ListView { ... onContentYChanged: { if(contentY > 0) { savedY = contentY console.log(savedY) } } onModelChanged: { contentY = savedY } }
Result (Video)
-
Anyone have idea?