blob: bb96147ab883b8cc156a1a8631f94eb2476a354a (
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
29
30
31
32
33
34
35
|
import QtQuick 2.2
import QtGraphicalEffects 1.0
Item {
id: root;
property int count: 8
property int maxCount: 32;
property int staticCount: 0
width: 600
height: 600
Image {
id: contentRoot
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
source: "grapes.jpg"
Rectangle {
color: "palegreen"
border.color: "black"
width: parent.width / 3
height: parent.width / 3
RotationAnimator on rotation { from: 0; to: 360; duration: 10000; loops: Animation.Infinite }
anchors.centerIn: parent
antialiasing: true
}
layer.enabled: true
layer.effect: GaussianBlur {
samples: root.count
radius: root.count
deviation: Math.sqrt(root.count)
}
}
}
|