Rectangle{
id:bg_1
anchors.fill: parent
visible: false
LinearGradient{//渐变色背景
anchors.fill: parent
start: Qt.point(0, 0)
end: Qt.point(bg_1.width, 0)
gradient: Gradient {
GradientStop{position: 0.0 ; color: "#54d383"}
GradientStop{position: 1.0 ; color: "#5daefb"}
}
}
}
OpacityMask {
anchors.fill: bg_1
source: bg_1
maskSource: Rectangle {
width: bg_1.width
height: bg_1.height
radius: 10
}
visible: is_active?true:false
}