How can i make a ListView continues to flick?

  • Hi everybody,
    When a listview at the boundary, I want it to continue to flick as appending itself at the end.
    Is it possible? I need two of them as horizontal and vertical orientation.

  • Qt Champions 2017

    This is how ListView works. May be not understood question correctly ?

  • @dheerendra
    Let me clarify the question with below example.

    import QtQuick 2.5
    Rectangle {
        anchors.fill: parent
            anchors.centerIn: parent
        gradient: Gradient {
            GradientStop { position: 0.0; color: "#f6f6f6" }
            GradientStop { position: 1.0; color: "#d7d7d7" }
        ListView {
            anchors.fill: parent
            anchors.margins: 20
            orientation: Qt.Horizontal
            layoutDirection: Qt.RightToLeft
            snapMode: ListView.SnapOneItem
            clip: true
            model: 5
            delegate: numberDelegate
            spacing: 5
            focus: true
        Component {
            id: numberDelegate
            Rectangle {
                width: ListView.view.width
                height: ListView.view.height
                color: ListView.isCurrentItem?"#157efb":"#53d769"
                border.color: Qt.lighter(color, 1.1)
                Text {
                    anchors.centerIn: parent
                    font.pixelSize: parent.height - parent.height/5
                    text: index

    When the "0" item is visible, I want it to continue with "4" item on left to right flick.
    When the "4" item is visible, I want it to continue with "0" item on right to left flick.

    I have just found "pathview " can make it possible this scenario.

    Is this possible also for ListView?

  • Qt Champions 2017

    PathView is an answer.

  • @dheerendra
    So there is no solution for ListView. I don't find any property in the documentation for the matter.

    thanks dheerendra

Log in to reply

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