-
Notifications
You must be signed in to change notification settings - Fork 0
/
XCentralCircle.qml
40 lines (38 loc) · 950 Bytes
/
XCentralCircle.qml
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
36
37
38
39
40
import QtQuick 2.0
import QtGraphicalEffects 1.12
Item {
id: r
anchors.fill: parent
property alias rectCentral: circ2
Rectangle{
id: bg
width: parent.width*2
height: parent.height
color: 'black'
anchors.horizontalCenter: parent.horizontalCenter
visible: false
}
Rectangle{
id: circ
width: xApp.width
height: xApp.height
color: 'transparent'
visible: false
Rectangle{
id: circ2
width: app.width*0.18
height: width*1.2//app.height*0.35
anchors.centerIn: parent
//radius: width*0.5
color: 'blue'
}
}
OpacityMask {
width: parent.width
height: parent.height
anchors.horizontalCenter: parent.horizontalCenter
source: bg
maskSource: circ
invert: true
}
}