aboutsummaryrefslogtreecommitdiffstats
path: root/tests/baseline/scenegraph/data/shaders/nesting/nesting.qml
blob: a1461aa0df2fc6649371c54a9e4bf8288a50f183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import QtQuick 2.0

Rectangle {
    id: root
    width: 320
    height: 480

    Text {
        id: textItem
        text: "Text Item"
        visible: false
    }

    ShaderEffect {
        width: root.width / 2
        height: root.height / 2
        anchors.left: parent.left
        anchors.verticalCenter: parent.verticalCenter
        property variant source: ShaderEffectSource {
            sourceItem: ShaderEffect {
                width: root.width / 2
                height: root.height /2
                property variant source: ShaderEffectSource { sourceItem: textItem }
            }
        }
    }
}