Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Detect when an item scrolls out of view in QListView
Forum Updated to NodeBB v4.3 + New Features

Detect when an item scrolls out of view in QListView

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 860 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    philk
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved