I try the FastBlur with doc. Why I always got a purple image? Take off the FastBlur the image is right.
import QtQuick
import Qt5Compat.GraphicalEffects
Window {
width: 640
height: 480
visible: true
title: qsTr("Hello World")
Image {
id: icon
anchors.centerIn: parent
width: 132
height: 105
source: "file:////Users/otis.lin/Desktop/test.png"
FastBlur {
anchors.fill: icon
source: icon
radius: 64
}
}
}
purple image:
Update code here, this is work for me.
Image {
id: img
anchors.fill: parent
source: "file:////Users/otis.lin/Desktop/test.png"
sourceSize: Qt.size(parent.width, parent.height)
smooth: true
}
FastBlur{
id: blur
anchors.fill: parent
source: img
radius: 32
}