How can i change the speed of listview scrolling in QML?

你。 提交于 2019-12-24 14:14:06

问题


I have created a list by using listview in QML. In my case, i want to change the speed of the list scrolling, scrollBar and the highlight to different value. For example,

Here is a list. While i move the highlight to the next element, three types of animation will be happened.

  1. scrollBar will scroll to bottom
  2. list will scroll to the top
  3. highlight will scroll to the next element

As i known, i can change the the highlight by

ListView {
   highlightMoveDuration : 200
}

I found that three types animations will start at the same time and last for the same time.

But in my case, i want to set three animations to stop at different time. For example:

  1. ScrollBar: start:0, End:300
  2. List: start:0, End:400
  3. highlight: start:0, End:200

How can i do that. Also, if they start at the different time, how can i do that?

来源:https://stackoverflow.com/questions/49485981/how-can-i-change-the-speed-of-listview-scrolling-in-qml

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!