Как автоматически размывать все виджеты находящиеся сзади?

У меня есть вот такой код в котором есть размывающий виджет

import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.12
import QtGraphicalEffects 1.0

ApplicationWindow {
    property var theme: String("#ffffff")
    property var focusColor: String('transparent')
    id: applicationWindow
    visible: false                                     // Важно
    width: 600
    height:600

    Image {
        id: image_bug
        anchors.fill: parent
        source: "im.png"                               // im.png установите свое
    }

    Rectangle {
    width: 100; height: 600
    color: "green"

   Text {
    id: helloText
    text: "Hello world!"
    anchors.verticalCenter: parent.verticalCenter
    anchors.horizontalCenter: parent.horizontalCenter
    font.pointSize: 10; font.bold: true
}
    MouseArea {
        anchors.fill: parent
        onClicked: { effectSource.width = 1200 }
    }
}
    ShaderEffectSource {
        id: effectSource
        sourceItem: image_bug
        anchors.centerIn: image_bug
        width: 300                                     // 400
        height: 300                                    // 400
        sourceRect: Qt.rect(x,y, width, height)
    }

    FastBlur{
        id: blur
        anchors.fill: effectSource
        source: effectSource
        radius: 100
    }




}

введите сюда описание изображения

Мне нужно что бы при нажатии кнопки все что находится сзади effectSource автоматически размывалось тоже. Количество вложенных виджетов мне не известно.


Ответы (0 шт):