-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt for MCUs 2.8
-
None
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.
- https://doc.qt.io/QtForMCUs-2.9/qml-qtquick-flickable.html#maximumFlickVelocity-prop
- It says "maximumFlickVelocity : Item*" Item* seems to be a mistake here
- But the description right below states "This property holds the maximum velocity that the user can flick the view in pixels/second", which sounds like a "real" type, and when assigning to this property a real number, it does compile.
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.