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

Listview highlight move animation stops when adding items to the model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.4.1, 5.5.0
    • None

    Description

      Scenario:
      We used the list view in a keyboard-only environment and wanted the currentItem to stay in the same place on the screen.

      So, we created a listview with the following configuration:

      highlightMoveVelocity: -1
      highlightMoveDuration: 1000
      highlightFollowsCurrentItem: true
      preferredHighlightBegin: 0
      highlightRangeMode: ListView.StrictlyEnforceRange
      interactive: true
      displayMarginBeginning: 100
      displayMarginEnd: 100
      

      We used the arrow keys (up/down) to navigate the list.
      It worked most of the time including the animation.
      But, when we added items to the model, the highlight move animation stopped causing a glitch in the UI.

      This happen also when we use custom animation as described in listview-highlight-move-animation-glitch-custom-animation.qml.

      I've attached a patch that solves the problem only in our case using the default animation and not the custom animation. Even so, I don't know if this patch is the proper solution.

      Attachments

        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
              mregev Moti Regev
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes