How to make ListView moving at a constant speed?



  • Hello
    I'm trying to make ListView moving at a constant speed with a flick operation.
    However, the speed of flick isn't a constant.
    View cann't move to the beginning/end position at most times.

    Sample code:

       ListView {
       width : 100
       height: 200
       boundsBehavior: ListView.StopAtBounds
       flickDeceleration: 0
       model: 1000
       spacing : 2
       delegate: Rectangle{  width: 100; height: 18  }
       }
    

    Thanks in advance
    Luosen


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.