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

TreeView will not relayout when rowsRemoved

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.9.1
    • Quick: Other
    • None

      follow these steps:
      1. expand all
      2. move to bottom
      3. remove last

      after 3, the TreeView will not reset layout, but keep it no change, which result the new last item is not located at bottom of View.

      I think it should returnBounds after rowsRemoved, but it not.
      flicker's properties are not work on this case.

      And second problem:
      if expand all items, and scroll to end (vertical direction), at this point, the contentHeight is right.
      But, if then collapse all, then the contentHeight is not one line, but like (contentHeight - view.height).

      I think the calculation of contentHeight has Bug, maybe there is relation between it and this issue.
      and the contentHeight bug maybe is caused by location of first item.
      after the collapse, the Y of first item in content should be 0, but not next to the top of view.

      and the contentHeight problem will result 'returnToBounds' can't work normally.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            niqingliang2003 niqingliang2003
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes