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

Can't animate QML TreeView indicators or expansion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.5
    • Quick: Other
    • None
    • All

      It's not possible to animate the indicator or expand/collapse in the new QML TreeView.

      If you try to put an animated Behavior on the rotation of the indicator arrow, it seems to work at first but then the indicators of ancestor items will spuriously rotate when you open/close descendants.

      The example in the docs for a supposed animated indicator does not animate, at least in 6.5. If it only works in some later version, that should be indicated in the docs. (I'll try again when we finally update to 6.8 LTS). But the fact that none of the styles in the baseline code on GitHub have animated indicators points to it not working in any version.

      I realize that the way TreeView is implemented as a TableView makes it harder to animate expand/collapse, but this really needs to be done somehow.

      Of all the possible UI animations, animating a tree open/closed is the most justifiable/needed, so the user's eye can track what's happening, instead of the transition just being a jarring pop.

      It's kind of wild it was released like this and has never been improved since. It makes UI created with it look like it's from 1997.

        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
            mattsidefx Matt Chaput
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes