Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Are items out of listview visible area deleted ?
wshn14 last edited by
I have a listview contains 10 items , but only 3 items visible at the same time .If I slide the view ,are the invisible item deleted in memory when the items from visible to invisible?
Jens last edited by
Yes they are. Only as many items as you can see on screen are guaranteed to be alive at any given time, which is why you should be careful about relying on storing any state in the items themselves. You can set the cacheBuffer property to a higher value to keep more items alive in the view. This can sometimes improve scrolling performance at the cost of memory (and startup time).