Is it possible to loop through a QML ListView?

I have implemented a simple list model and delegate list in QML, and now I am curious if it is possible to make the main list circular. Here is the code snippet:

      Common.MarketsListView {
      id: markets
      anchors.top: logoImage.bottom
      anchors.topMargin: 5
      cacheBuffer: 20000

      NumberAnimation on x {
          running: runtime.isActiveWindow
          loops: Animation.Infinite
          from: 0
          to: -300
          duration: 20000
      }

Currently, the list moves slowly to the left, but when it reaches the end, only the last few items are displayed. Therefore, I will either make the main list circular, or adjust the transition to the first element of the list: (

+5
source share
1 answer

You cannot do this with a ListView, but you can get the bhaj you want using a PathView, for example. http://doc.qt.nokia.com/4.7-snapshot/declarative-ui-components-spinner.html

+5

All Articles