Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Detect when an item scrolls out of view in QListView
philk last edited by
For each item visible in the view I trigger a thumbnail generation in the background. Generation is queued so it can happen that the user scrolls and items scroll out of the view. Those scheduled thumbnail generations of those items should then be canceled.
Is there a way to find out if items have been scrolled out of the view?
You could connect to the scrollbar and check using visualRect with the indexes for which you are loading (there might be other solutions subclassing QListView)