Navigate through QML ListView



  • When I reach the end of a QML ListView and navigate then to the first Element, the complete List will be pass through.
    Is it possible, to avoid this?

    Thank You.



  • if you want, you can add a button somewhere that will return the user automatically to the beginning of the list:
    @
    onClicked: listView.currentIndex = 0
    @

    Just make sure that in the ListView definition you have set the highlightFollowsCurrentItem to true.



  • Hi. Thank you for help, but that does not solve my problem.

    But that week I solved it with using positionViewAtIndex.


Log in to reply
 

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