FastBlurItem prevents Button from drawing properly or receiving mouse events?
Unsolved
QML and Qt Quick
-
Just playing around with the FastBlurItem component, and I notice it seems to break any control placed inside it? The following contrived example shows what I'm seeing in Qt Design Studio 1.5.0.
import QtQuick 2.12 import QtQuick.Controls 2.3 import QtGraphicalEffects 1.0 import QtQuick.Studio.Effects 1.0 Pane { id: _root width: 600 height: 600 Button { text: "This is a button" anchors.centerIn: parent onClicked: console.info("First button clicked!") } FastBlurItem { anchors.fill: parent radius: 10 Button { text: "Blurred button" anchors.top: parent.top anchors.topMargin: 20 anchors.left: parent.left anchors.leftMargin: 20 onClicked: console.info("Blurred button clicked!") } } Button { text: "This is another button" anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter onClicked: console.info("Other button clicked!") } }
In the form editor, the Button inside the FastBlurItem doesn't even display visually anymore, though it is still selectable. When previewing, the button text appears blurred, but the button rectangle itself doesn't draw, and it is no longer clickable.
The other two buttons work as expected.So...does this mean FastBlurItem eats mouse events? Is it not possible to place controls within one?