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

D&D when using DelegateModel with QAbstractItemModel produces some strange result

    XMLWordPrintable

Details

    • Linux/X11, macOS

    Description

      In a simple Quick application using QAbstractListModel and DelegateModel shows some wired behavior when drag and drop operation is performed and the list is sorted.

      Attached simple application can be used to see the behavior:

      Steps to reproduce:
      Case #1:
      1). Drag some items in the list
      2). Turn on Sort button, note that the items in the list will do some weird things, overlapping each other
      3). Turn off sort, note that the list returned to its previous order
      4). Turn on sort, note that the list is now sorted correctly
      5). Subsequent clicks on the sort button work as expected
       
      Case #2:
      1). Restart the app
      2). Drag some items in the list
      3). Turn on sort button
      4). Turn off sort button
      5). Drag some items in the list, note that dragging no longer works correctly

      Attachments

        For Gerrit Dashboard: QTBUG-129812
        # Subject Branch Project Status CR V

        Activity

          People

            dilek Dilek Akcay
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change