Flickable velocity


  • Qt Champions 2016

    Hi all,

    I am making a component based on GridView to show a grid of items. The items can be dragged and the GridView should scroll when the item come near to the edge.

    I think I should use the flick(qreal xVelocity, qreal yVelocity) to make the scroll. But there has no document to explain the parameter. It just say it is pixel/sec. But what is the duration? Without the formula , it is quite difficult to find out the correct value that fulfill my requirement.

    Anyone know the formula?

    Thank you.



  • The velocity just defines how fast the GridView should flick. You cannot set to which position it should flick as far as I know.


Log in to reply
 

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