Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-364

Flickable's Property "maximumFlickVelocity" in SwipeView has no effect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt for MCUs 2.8
    • QUL Team
    • None

    Description

      In our application we have a SwipeView, with contentItem Flickable, that repeats multiple pages of buttons.

      We want to limit how fast the SwipeView advances,

      However the "maximumFlickVelocity" property of Flickable does not seem to have any effect at all. Furthermore the documentation here seems inconsistent.

      A minimal code example i created to reproduce the problem:

          SwipeView {
              id: swipeView
      
              anchors.fill: parent
              orientation: Qt.Horizontal
      
              contentItem: Flickable {
                  id: flickable
      
                  maximumFlickVelocity: 50 // Has no effect whatsoever
              }
      
              Repeater {
                  model: 5
      
                  delegate: Item {
                      height: 400
                      width: 600
      
                      Rectangle {
                          anchors.fill: parent
                          anchors.leftMargin: 50
                          anchors.rightMargin: 50
                          color: "green"
      
                          Text {
                              anchors.centerIn: parent
                              text: index
                          }
                      }
                  }
              }
          }
      

       

      The green "pages" will swipe with the same speed, irregardless of what value is assigned to "maximumFlickVelocity"

      We expect that we can set this property to a low value to influence the speed.

       

       

       

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            berc Marc Beusch
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes