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

Drag&Drop in a QTreeView behaves strange on Mac OS X

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.1
    • 4.7.0
    • None
    • None
    • qt.git, 4.7 branch (a17339e943f21bb6c6e16884f716dd9ab8f94938) on Mac OS X (Cocoa)
    • macOS

    Description

      The problem shows up in QtCreator. There we have a Navigator that is a (heavily styled) QTreeView. You can use it to reorder the Item hierarchy. While this works nicely on Windows/Linux, it shows severe problems on Mac OS X / Cocoa:

      • While dragging, we leave artifacts behind (the dragged item just remains visible at old positions)
      • Sometimes you cannot drag any more to positions you should be able to drag. E.g. dragging to the root item often doesn't work (the mouse cursor is turned to default, no marking of the item to drag to). But then again, sometimes it works ...

      Attached is a version of the navigator ripped out of Qt Creator. This version shows also the second problem, but (for whatever reason) doesn't show the artifacts.

      Attachments

        1. dragndroptest.zip
          12 kB
        2. linux.gif
          linux.gif
          567 kB
        3. screenshot-1.jpg
          screenshot-1.jpg
          11 kB

        Issue Links

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

          Activity

            People

              freling Fabien Freling (closed Nokia identity) (Inactive)
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes