Reputation: 1765
[Qt Quick 2.0 (qml) - Android] I searched but I don't get how one can increase the velocity of the scrolling in a listview:
ListView {
width: 180; height: 200
Component {
id: contactsDelegate
Rectangle {
id: wrapper
width: 180
height: yeah.height
Column{
id:yeah
Text {
id: contactInfo
text: name + ": " + number
}
Image{
source: jpgsrc
}
}
}
}
model: ContactModel {}
delegate: contactsDelegate
focus: true
}
Say my ContactModel has 200 elements. My problem is that the scrolling speed over those elements is too slow. It takes too long to scroll the whole list.
I would like to know how to modify that code to make the scrolling experience faster (at least with a higher velocity).
Thanks
Upvotes: 3
Views: 3730
Reputation: 679
To improve speed of scrolling you can play with 2 ListView
properties: cacheBuffer
and maximumFlickVelocity
.
maximumFlickVelocity
directly impacts speed whereas cacheBuffer
should be updated if you have speed issues due to slow dynamic loading of ListView
elements.
Upvotes: 3