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

ListView.highlightMoveSpeed is ignored in QtQuick 2.0

    XMLWordPrintable

Details

    Description

      When defining the highlightMoveSpeed of a ListView, it is not considered in QtQuick 2.0. The actual used moving speed seems to be much higher.
      This used to work well in QtQuick 1.x (Qt 4.x).

      See the comparing animation (The transition between one item and the next one should take 1 second.)

      //import QtQuick 1.1
      import QtQuick 2.0
      
      Item {
          width: 120
          height: 120
          ListView {
              id: listview
              anchors.fill: parent
              orientation: ListView.Horizontal
              model: 100000
      
              highlightMoveSpeed: width // Proceed to next item within 1 second
      
              delegate: Item {
                  width: listview.width
                  height: listview.height
                  Text {
                      anchors.centerIn: parent
                      text: index % 2 ? "B" : "A"
                  }
              }
          }
          Timer {
              interval: 2000
              repeat: true
              running: true
              onTriggered: listview.incrementCurrentIndex()
          }
      }
      

      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)
            portale Alessandro Portale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes