Important: Please read the Qt Code of Conduct -

Detect when an item scrolls out of view in QListView

  • 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?

  • Lifetime Qt Champion


    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)

Log in to reply