问题
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.
- scrollBar will scroll to bottom
- list will scroll to the top
- 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:
- ScrollBar: start:0, End:300
- List: start:0, End:400
- 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