Rectangle {
anchors.fill: parent
color: "black"
Rectangle {
anchors.centerIn: parent
width: 400
height: 5
border.width: 0
gradient: Gradient {
orientation: Gradient.Horizontal
GradientStop { position: 0.0; color: "black" }
GradientStop { position: 0.25; color: "white" }
GradientStop { position: 0.75; color: "white" }
GradientStop { position: 1.0; color: "black" }
}
}
}
RadialGradient
: RadialGradient {
anchors.centerIn: parent
width: 400
height: 5
gradient: Gradient {
GradientStop { position: 0.0; color: "white" }
GradientStop { position: 0.5; color: "black" }
}
}