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

Itemviews selection doesn't reflect native behavior on Windows when initiating a drag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.8.x
    • 4.7.1
    • Widgets: Itemviews
    • None
    • Windows

      At the moment a treeview always clears the selection when the user wants to initiate a drag. This happens if the selectionMode is set to ExtendedSelection and the default drop action is MoveAction. The user presses the Ctrl key (to copy) and then pressed on the selected item.
      I assume that it's interpreted as a selection change (clicking on the selected item while Ctrl key is pressed deselects it). In contrast to e.g. the windows explorer Qt performs selections of items while the Ctrl key is pressed on mouse press (explorer performs it on release or when the drag is started.
      Even if it sounds like a minor issue it's quite annoying to take pressing the Ctrl after the drag was initiated.

      You can reproduce the behavior with the attached .ui.

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

            Unassigned Unassigned
            mpejcoch Martin Pejcoch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes