Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-23462

When scrolling up through a list then Listview::indexAt() may return -1 for an item that is visible

XMLWordPrintable

      When scrolling up through a list then Listview::indexAt() may return -1 for an item that is visible. If you are calling indexAt() in response to onContentYChanged then sometimes it will return -1 when scrolling upwards, even though when scrolling downwards it doesn't have this problem.

      Attached example reproduces this problem, just scroll down the list and then scroll up, the debug output will show what indexAt is returning.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            martjone Martin Jones (closed Nokia identity) (Inactive)
            andysh Andy Shaw
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes