Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Using FastBlur component causes "Qt Quick Emulation Layer" to crash in Qt Design Studio 1.5?
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 410 Views
  • 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 Offline
    S Offline
    Shiny
    wrote on last edited by Shiny
    #1

    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
    0
    • M Offline
      M Offline
      marco_piccolino
      Qt Champions 2017
      wrote on last edited by
      #2

      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
      0
      • M Offline
        M Offline
        marco_piccolino
        Qt Champions 2017
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • M Offline
          M Offline
          marco_piccolino
          Qt Champions 2017
          wrote on last edited by
          #4

          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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved