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 control flick or snap to n number of items in listview
Forum Update on Monday, May 27th 2025

How to control flick or snap to n number of items in listview

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 194 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.
  • S Offline
    S Offline
    Svivek
    wrote on last edited by
    #1

    Say currently we have 12 items in listview and we show 4 items per page. so Basically 3 pages. Now if I flick from first page it should snap to next page only. So when user flicks it will stop at second page.
    currently view 1,2,3,4 items on page and if I flick it should show 5,6,7,8 item. Again if I flick on second page it should show only 9,10,11,12th item. SnapMode seems good for single item. If I flick using snapMode: ListView.SnapOneItem it will show 2,3,4,5 . I want something snaptoNitems sometime like that. So acheive my goal like flick only page wise. Tried to play around with maximumVelocity but its not helpful.

    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