aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickwindow/data/grabContentItemToImage.qml
blob: 9086e0cc849bc2b0e7466a21e1ec510afd1c9737 (plain)
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
        })
    }
}