Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21711

ShaderEffect crashes when using alias property as source

XMLWordPrintable

    • 0755302f0b3723ecccc78cedf394f264beef860f

      The code below crashes but changing the ShaderEffect's source property type to variant works fine and renders red as expected.

      Rectangle {
          id: rect
          width: 360
          height: 360
      
          property variant src: ShaderEffectSource { sourceItem: srcRect }
      
          Rectangle {
              id: srcRect
              color: "red"
              width: 100
              height: 100
          }
      
          ShaderEffect {
              anchors.fill: parent
      
              // Changing this to variant works
              property alias source: rect.src
          }
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kkalland Kim Motoyoshi Kalland (Inactive)
            kimgronholm Kim Grönholm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes