Important: Please read the Qt Code of Conduct -

ListView issue in QML

  • I'm trying to design scrollable list of digits using snapMode in ListView, sort of spinning list control.
    The only issue am finding is the list doesn't get repeats on scrolling when the we scroll to end item

    How can i scroll the items while scrolling in a loop

    below is the code snippet of the implementation

    @import QtQuick 1.1

    Rectangle {
    id: mSpinner

        anchors.centerIn: parent
        width: 300
        height: width
        color: "gray"
        ListView {
            id: list
            anchors.fill: parent
            snapMode: ListView.SnapToItem
            model: 5
            delegate: Rectangle{
              width: list.width
              height: list.height
              color: "transparent"
              Text {
                  anchors.centerIn: parent
                  horizontalAlignment: Text.AlignHCenter
                  text: index
                  font.pixelSize: list.width


  • I suppose that by repeating scrolling you mean element like PathView (Qt 4.8).

  • I don't know if you still need the answer, but I came across this:

Log in to reply