import QtQuick 2.5 import fbx.application 1.0 Application { property variant imgtab: ["IMG_9013.JPG", "IMG_9109.JPG", "freemobile.png", "logo_free.jpg"] property int i: 0 Image{ focus: true id: img anchors.fill: parent fillMode: Image.PreserveAspectFit source: imgtab[0] Keys.onPressed: { if((event.key === Qt.Key_Left) && (i>0)) { i-- img.source = imgtab[i] } else if((event.key === Qt.Key_Right) && (i < imgtab.length-1)) { i++ img.source = imgtab[i] } } } }