1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import QtQuick 2.0 import QtQuick.Window 2.2 as Window Window.Window { visible: true width: 100 height: 100 property int success: 0 function grabContentItemToImage() { contentItem.grabToImage(function (image) { success = 1 }) } }