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

QTreeWidget collapseAll() collapses only visible items

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.9.8
    • Widgets: Itemviews
    • None

    Description

      I've got a QTreeWidget and want to collapse all items, so I call collapseAll(). However, this only collapses visible items, as the user can see the next time they click to expand an item: the items below, now exposed, retain their previous collapse/expand state. So I had to write a recursive-descent method that goes through the whole tree and actually collapses everything. Seems like collapseAll() ought to do this, given its name. :->

      Attachments

        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
            bhaller Ben Haller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes