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

    Hi,

    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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.