blob: 43843c677bbaaaf86fb37e8ed4a5a3a50027b259 (
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
Item {
width: 320
height: 480
Rectangle {
id: foo
width: 200
height: 200
radius: 100
anchors.centerIn: parent
gradient: Gradient {
GradientStop { position: 0; color: "red" }
GradientStop { position: 0.5; color: "white" }
GradientStop { position: 1; color: "blue" }
}
ShaderEffectSource {
id: buffer
anchors.fill: parent
sourceItem: foo
live: false
smooth: true
rotation: 45
recursive: true
}
}
}
|