import QtQuick 2.0 Rectangle { width: 300 height: 250 Image { objectName: "image" anchors.fill: parent source: "pattern.png" } }