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

ListView.indexAt returns wrong index

    XMLWordPrintable

Details

    • f93d1245e5c36cf25cd6fd3c3418ee7e63e04ac2

    Description

      ListView.indexAt() returns wrong results. It seems that this is related to coordinates given in real numbers (234.33333334) and not natural numbers (234).

      Example is given in Test.qml

      Just open it in QML-Viewer and "Show Warnings". In log you can see the coordinates and the resulting index.

      PS: If you use (indexAt (x+1, y)) it works

      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)
            topse Tobias Steinmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes