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: (
source
share