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

TreeView messes up its layout when inserting a new item after an open item branch

    XMLWordPrintable

Details

    • 69c7e95da101d4d66d25c4850f3591d4ccd2bbc1 (qt/qtquickcontrols/5.12)

    Description

      Steps to reproduce:
      -------------------

      • Run the sample attached
      • see image 'treeview_bug.png' for additional information

      Phase 1:

      • Open 'item 0' branch to reveal 'subitem 0'
      • Click button 'insert'
        EXPECTED: the inserted item appears between 'item 0' and 'item 1'
        ACTUAL: the inserted item appears on the last row

      Phase 2:

      • Make a selection from 'item 0' to 'item 1' using mouse and SHIFT
        RESULT: the inserted item gets selected too -> something wrong with the layout

      For comparison, test without revealing the subitem.

      Attachments

        1. treeview_bug.png
          treeview_bug.png
          21 kB
        2. qtbug66062.zip
          2 kB

        Issue Links

          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
              risto.sipola Risto Sipola
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes