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

Details

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes