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 get ListView to stop scrolling when last item is visible

How to get ListView to stop scrolling when last item is visible

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 1.3k 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.
  • DuBuD Offline
    DuBuD Offline
    DuBu
    wrote on last edited by
    #1

    Hello all,

    a ListView allows one to scroll up until the last item reaches the top of the view. How can I tell ListView to stop scrolling when the last item scrolls into view (at the bottom of the view)?

    Thanks!

    E 1 Reply Last reply
    0
    • DuBuD DuBu

      Hello all,

      a ListView allows one to scroll up until the last item reaches the top of the view. How can I tell ListView to stop scrolling when the last item scrolls into view (at the bottom of the view)?

      Thanks!

      E Offline
      E Offline
      Eeli K
      wrote on last edited by
      #2

      @DuBu How about snapMode? snapMode: ListView.SnapToItem?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MaxL
        wrote on last edited by
        #3

        Hi @DuBu ,

        The listview should stop scrolling when the last item is plainly visible.
        These are the things you can check to find out whats wrong:

        • The height of your listview: set the clip property to true then you'll see only what is inside the listview height.
        • The model: maybe you are having more elements that you expect.

        Anyway , a little bit of your code would help a lot.

        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