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



  • 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!



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



  • 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.


Log in to reply
 

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