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

QtQuick ListView sometimes releases an item while it is dragged

    XMLWordPrintable

Details

    • qtdeclarative#stable: fc5314f96990148a7c32b988caf53c5db92b2b4b

    Description

      UPDATE the attached example list_bug_reproduced.qml reproduces the bug using qmlscene

      When you have a flickable QtQuick ListView and you drag an item such that the list view is scrolling then sometimes the dragged item disappears and you cannot drop anything anymore.

      I was able to reproduce this with a special case in the attached example (main.qml), but it is reproducible with a normal drag and drops in a more complex application, which has a larger render load. The bug occurs frequently in that application, but it doesn't appear to be deterministic. It seems to happen only when dragged from right to left, and when the dragged item is swapped at the leftmost visible item.

      How to reproduce in the example app: Drag an item from right end to left such that the list view starts scrolling. Wiggle the mouse on the left end of the window to continue the scrolling even if there are no more items in the view. When all of the items have scrolled out of the window the dragged item disappears and shortly reappears when the list is redrawn to the window. Now the dropping doesn't work anymore.

      I also attached two stack traces from the real application: stack1.txt happens when the dragged item disappears and stack2.txt after that.

      Attachments

        1. list_bug_reproduced.qml
          8 kB
        2. main.qml
          4 kB
        3. stack1.txt
          2 kB
        4. stack2.txt
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            qtcomsupport Qt Support
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes