import QtQuick 1.1 Item { property alias current: image.source property alias caption: caption.text anchors.fill: parent Image { id: image asynchronous: true clip: true smooth: true fillMode: Image.PreserveAspectFit // fillMode: Image.Stretch anchors.fill: parent } Text { id: caption anchors.horizontalCenter: parent.horizontalCenter anchors.top: parent.top } }