Using FastBlur component causes "Qt Quick Emulation Layer" to crash in Qt Design Studio 1.5?
-
I'm trying to create a component item using the QtGraphicalEffects.FastBlur, but I'm unable to edit it in the form editor in Qt Design Studio 1.5.0.
Here's an extremely simplified version of my qml which will give the message "Qt Quick emulation layer crashed (Line 1)" when you attempt to view it in the form editor. No errors in the text editor. The strange thing is that this same qml worked ok in Qt Design Studio 1.4, and if you "play" the qml to preview it, it runs fine as well.
If you comment out the FastBlur{} section of the code, it will not give an error, and will show up fine in the form editor.
import QtQuick 2.12 import QtQuick.Studio.Components 1.0 import QtQuick.Controls 2.3 import QtGraphicalEffects 1.0 Item { id: _root width: 200 height: 500 Pane { id: _blurred anchors.fill: parent padding: 0 ShaderEffectSource { id: _effectsource anchors.fill: parent sourceRect: Qt.rect(_root.x, _root.y, _root.width, _root.height) } FastBlur { id: _blur anchors.fill: parent source: _effectsource radius: 100 } } }
Anyone know what is causing the "emulation layer" crash? Any way around it?
-
I've encountered the same issue.
I guess a workaround would be to use the component wrappers in
https://doc.qt.io/qtdesignstudio/qtquickdesigner-components-overview.html#applying-visual-effects
instead. If you create a brand new QDS project, you'll find these components under theimports
folder,
you could package the ones that you need with your app. -
I've opened an issue: https://bugreports.qt.io/browse/QDS-2514
-