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

Moving an item from the beginning to the end or from the end to the beginning "messes" up QML ListView.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.8.2, 4.8.3
    • None
    • Mac OS X, Linux Ubuntu, Windows7

      Moving an item from the beginning to the end or form the end to the beginning messes up QML ListView. After the move has occurred the ListView reports the indexAt incorrectly. With the attached QML example select and drag the top element to the bottom element. Then click on the new top element. Look at the console output and the current_selected will be reported as -1. Clicking on the second element in the list will print that it is the 0 index and clicking below the last element will print index 4 (should be -1 of course), which is incorrect.

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

            martinj Martin Jones
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes