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

Setting PathView::currentIndex does not always trigger animation in the right direction

    XMLWordPrintable

Details

    Description

      I use a setup where I present some items using a PathView element. When clicking on an element that is not the current element, that element moves to the middle of the path and becomes the current element. I use the PathView::currentIndex for that. When setting that property, the PathView animates so the new currentIndex moves to the correct position. I would have expected items to take the shortest route there, but it doesn't always do so. There are only 3 items showing on my path. If the model only contains three items, then the items animate in the wrong direction sometimes. Instead of moving from the right side of the path (the end) to the middle, the item is first moved to the left side (the start of the path) and only then to the middle.

      This animation feels unnatural this way. I would have expected items always to move through the shortest path.

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            andre André Somers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes