import QtQuick 1.1 Item { id: cache property int size: 5 function cache_index(index) { var raw = mainWindow.index + index if (raw < 0) { raw += count } var idx = raw % count console.log(idx, count, mainWindow.index, index, raw) return idx } Repeater { model: size Image { source: items[cache_index(index)] visible: false asynchronous: true clip: true smooth: true cache: true fillMode: Image.PreserveAspectFit } } }