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

QListWidget/QListView: item widget disappears when item is dragged and dropped on itself

    XMLWordPrintable

Details

    • All
    • a815c40e7 (dev), 74ee445a6 (tqtc/lts-6.2), cfb1b9661 (6.5), 45b996de8 (tqtc/lts-5.15)

    Description

      Hello,

      Issue: QMainWindow with QListWidget that has implemented drag & drop support using InternalMove. QListWidgetItem has set custom QWidget.

      The issue is that on drop event (with is Qt::TargetMoveAction) item is re-created (item is deleted and new one is added) and that behaviour is not consistent. For example sometimes it happens when dropping between other items, but usually (reproducible 100%) happens when dropping on bottom of QListWIdget window where there is no items.

      Expected behaviour is that item changes it's order on the list.

      Issue noticed on Windows with Qt 5.15.2, using 5.14.2 can't reproduce issue.

      Attachments

        1. 2023-03-24 10-26-47.mkv
          1.86 MB
          Pierre B
        2. qtbug-100128.tgz
          1 kB
          Christian Ehrlicher
        3. QTBUG-100128.tgz
          4 kB
          Axel Spoerl
        4. QTBUG-100128-rev.tar.gz
          4 kB
          ekhumoro

        Issue Links

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

          Activity

            People

              axelspoerl Axel Spoerl
              lugru Łukasz Grużewski
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: