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

Drag/Drop operation triggers wrong indentation of items in TreeView QML

    XMLWordPrintable

Details

    • Windows

    Description

      Reproducer attached.

      Steps to reproduce the issue : 

      1. Run the example application.
      2. Drag "layer_1" and try to drop it between "layer_2" and "layer_3".
      – There are two dropping points between layer_2 and _3, OK to drop it to either point.
      – The operation will be ignored, and "layer_1" will be put back to the initial position.

      3. Expand "layer_2", and scroll the view by quickly dragging the slider of the scroll bar.
      You will find an item wrongly indented somewhere in the layer_2.
      If you don't, repeat the steps 1-3 until it happens.

      4. Once you fell in this situation, you will see the wrong-indentations here and there while you moving the slider of the scroll bar.

      The attached screenshot shows how the issue looks like.
      Although Feature_2_41 was displayed in a wrong indentation, the data model was not corrupted as you can see in model_structure.txt.

       

      Attachments

        1. model_structure.txt
          6 kB
        2. Reproducer.zip
          12 kB
        3. Screenshot_wrong_indent.png
          Screenshot_wrong_indent.png
          27 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            hitoshiito Hitoshi Ito
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes