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 itemHow can i scroll the items while scrolling in a loop
below is the code snippet of the implementation
@import QtQuick 1.1
Rectangle {
id: mSpinneranchors.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 don't know if you still need the answer, but I came across this: http://qt-project.org/wiki/QML_Scrolling_Digits