Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Flickable velocity
Forum Updated to NodeBB v4.3 + New Features

Flickable velocity

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 740 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • benlauB Offline
    benlauB Offline
    benlau
    Qt Champions 2016
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • E Offline
      E Offline
      ephe
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved