import QtQuick 2.1 import QtQuick.Controls 1.0 Rectangle { width: 640 height: 600 id: win Image { id: img source: "../../../../../Users/Public/Pictures/Sample Pictures/Hydrangeas.jpg" width:300 height:300 } Canvas { anchors.bottom: parent.bottom width:300 height:300 id: cnv onPaint: { var ctx = cnv.getContext('2d'); ctx.drawImage(img, 0,0,300,300); } } Button { text: 'Do it' anchors.centerIn: parent onClicked: { cnv.requestPaint(); } } }