create Flickable and list view that start again at end

155 views Asked by At

hello how o create list view that start again at end like (0-1-2-3...8-9-0-1-2) like loop i used tumbler but it have some problem i need something like tumbler +wrap...........................................................................................................................................................................................

import QtQuick 2.12 
import QtQuick.Layouts 1.12 
import Qt.labs.folderlistmodel 2.12

 Flickable{
    width: 180; height: 200; color: "white"
    
          Component {
              id: delegate
              Item {
                  id: wrapper
                  width: 180; height: 40
                  Column {
                      x: 5; y: 5
                      Text { text: '<b>Name:</b> ' + name }
                     
                  }
              }
          }
    
          ListView {
              width: parent.width; height: parent.height
              delegate: delegate
              focus: true
              model: ListModel {
                  id: contactModel
                  ListElement {
                      name: "1"
                      
                  }
                  ListElement {
                      name: "2"
                  }
                  ListElement {
                      name: "3"
                     
                  }
                  ListElement {
                      name: "4"
                     
                  }
                  ListElement {
                      name: "5"
                      
                  }
                  ListElement {
                      name: "6"
                      
                  }
                  ListElement {
                      name: "7"
                     
                  }
                  ListElement {
                      name: "8"
                      
                  }
                  ListElement {
                      name: "9"
                     
                  
                 
                  }
              }
          }
      }
0

There are 0 answers