Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Using FastBlur component causes "Qt Quick Emulation Layer" to crash in Qt Design Studio 1.5?

    QML and Qt Quick
    2
    4
    216
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Shiny last edited by Shiny

      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?

      1 Reply Last reply Reply Quote 0
      • M
        marco_piccolino Qt Champions 2017 last edited by

        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 the imports folder,
        you could package the ones that you need with your app.

        1 Reply Last reply Reply Quote 0
        • M
          marco_piccolino Qt Champions 2017 last edited by

          I've opened an issue: https://bugreports.qt.io/browse/QDS-2514

          1 Reply Last reply Reply Quote 0
          • M
            marco_piccolino Qt Champions 2017 last edited by

            Ah, I see a related issue here:
            https://forum.qt.io/topic/114284/qtgraphicaleffects-components-cannot-be-created-in-qt-design-studio-qt-creator-community-version/4

            1 Reply Last reply Reply Quote 0
            • First post
              Last post