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

setDragEnabled() is breaking interactive item selection in QTreeView

    XMLWordPrintable

Details

    • Windows
    • 557dcd8a8 (dev), 487bebf1a (tqtc/lts-6.2), d2ef5cd65 (6.4), ff6d1d3a0 (6.5), 3f2d02e2f (dev), e1445ebc7 (6.4), 0e5e7acca (6.5), 09bf5a439 (tqtc/lts-6.2), b1d95c670 (6.4.3)

    Description

      if setDragEnabled() is set to True, multiple selection of QTreeview items does not behaves as intended.
      with attached example, hold ctr button and select any two item.
      then click on any selected item to unselect while holding ctr.
      Expectation is that it will unselect but reality is it will make it editable.

      Now redo it again, select first two item while holding ctr key, Then without holding ctr key select third unselected item, expectation is all other selected items will be unselected and and third item will be selected but reality is this also gets selected and edited.

      if comment setDragEnabled() this seems working better.

      This works great with Qt5.15.x

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: