Use Qt6 compatible blur effect.

main
Mentalflow 2023-05-14 13:05:06 +08:00
parent 84e863f664
commit 74afdeaf49
No known key found for this signature in database
GPG Key ID: 5AE68D4401A2EE71
2 changed files with 17 additions and 15 deletions

View File

@ -20,11 +20,14 @@ FluScrollablePage{
height: 1200/5
radius:[15,15,15,15]
Image {
id:image
asynchronous: true
source: "qrc:/example/res/image/banner_3.jpg"
anchors.fill: parent
sourceSize: Qt.size(width,height)
}
FluAcrylic {
sourceItem:image
anchors.bottom: parent.bottom
anchors.right: parent.right
width: 100
@ -36,7 +39,6 @@ FluScrollablePage{
font.bold: true
}
}
}
Layout.topMargin: 20
}
@ -45,15 +47,17 @@ FluScrollablePage{
Layout.fillWidth: true
Layout.topMargin: -1
code:'Image{
id:image
width: 800
height: 600
source: "qrc:/example/res/image/image_huoyin.webp"
radius: 8
}
FluAcrylic{
sourceItem:image
width: 100
height: 100
anchors.centerIn: parent
}
}'
}

View File

@ -23,11 +23,9 @@ Item {
sourceRect: Qt.rect(control.x, control.y, control.width, control.height)
}
GaussianBlur {
FastBlur {
radius: 20
anchors.fill: effect_source
source: effect_source
samples: 1 + radius * 2
}
}