Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Blur effect for Rectangle

$
0
0
Hi guys… I need to put a blur affect to a rectangle qml object. I saw the example about FastBlur effect, but it’s work only for images… my code look like this and it’s doesn’t work: Rectangle{     id: root     color: "transparent"     border.width: 2     border.color: "black"     radius: 18       Rectangle{         id: rectSection         width: parent.width - parent.border.width * 2         x: parent.border.width         height: parent.height - parent.border.width * 2         y: parent.border.width         color: "#070707"         anchors.top: parent.top         anchors.topMargin: parent.border.width         opacity: 0.4         radius: 16     }       FastBlur{         id: blur         anchors.fill: root         radius: 8         source: rectSection     } } how can I adda blur effect to a rectangle qml object ?? best regards Freddy

Viewing all articles
Browse latest Browse all 4972

Trending Articles