aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickitemlayer/data/ToggleLayerAndEffect.qml
blob: 174b669b6c60b3bcf4e01409f72ec869d360ca30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import QtQuick 2.0

Item {
    width: 200
    height: 200
    Rectangle {
        width: 100
        height: 100
        color: "red"
        Component.onCompleted: {
            layer.enabled = true
            layer.effect = effectComponent
            layer.enabled = false
            visible = false
            width = 120
            x = 10
        }
    }
    Component {
        id: effectComponent
        ShaderEffect { }
    }
}