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
        2. qtbug-100128.tgz
          1 kB
        3. QTBUG-100128.tgz
          4 kB
        4. QTBUG-100128-rev.tar.gz
          4 kB

        Issue Links

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

          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: