Image slide show in qml
-
Do you mean repeating from start of slide show?
If so, use PathView instead of ListView -
@MajidKamali Thanks for reply.
I tried pathview in qt example "http://doc.qt.io/qt-5/qtquick-views-pathview-pathview-example-qml.html" but I need it without using mouse event.Automatically it will trigger like slide show.I tried it with timer but it didn't work for me. -
In the path view example above just add the following timer code. This should work. Hope this is what you require.
Timer {
id : tim
interval: 2000
running: true
repeat: true
onTriggered: {
view.currentIndex = idx++;
}
} -
@Bharathi set width of PathView items to window width and then use snapMode to PathView.SnapOneItem
http://doc.qt.io/qt-5/qml-qtquick-pathview.html#snapMode-prop -
@MajidKamali
I already try snapmode but it shows all images