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. How to make ListView moving at a constant speed?
Forum Updated to NodeBB v4.3 + New Features

How to make ListView moving at a constant speed?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
listview flick
1 Posts 1 Posters 493 Views
  • 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.
  • L Offline
    L Offline
    luosen
    wrote on last edited by
    #1

    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

    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