Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-920

MaskedBlurItem is broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • QDS 1.3.0
    • QDS 1.3. Beta
    • Design Studio Effects
    • None

    Description

      The MaskedBlurItem is not working as expected compared to the MaskedBlur.

      Top left: MaskedBlur
      Top right: MaskedBlurItem
      Bottom left: Source
      Bottom right: Mask

      import QtQuick 2.12
      import EffectTest 1.0
      import QtGraphicalEffects 1.12
      import QtQuick.Studio.Effects 1.0
      import QtQuick.Studio.Components 1.0
      
      Rectangle {
          width: 1000
          height: 1000
          color: Constants.backgroundColor
      
          Image {
              id: bug
              source: "qrcode.png"
              sourceSize: Qt.size(parent.width, parent.height)
              smooth: true
              visible: false
          }
      
          Image {
              id: mask
              anchors.fill: bug
              source: "mask.png"
              sourceSize: Qt.size(parent.width, parent.height)
              smooth: true
              visible: false
          }
      
          MaskedBlur {
              anchors.fill: bug
              source: bug
              maskSource: mask
              radius: 16
              samples: 24
          }
      
          MaskedBlurItem {
              id: maskedBlur
              x: 500
              y: 0
              width: 500
              height: 500
      
              Image {
                  id: image1
                  x: 0
                  y: 0
                  width: 500
                  fillMode: Image.PreserveAspectFit
                  source: "qrcode.png"
              }
      
              Image {
                  id: image2
                  x: 0
                  y: 0
                  fillMode: Image.PreserveAspectFit
                  source: "mask.png"
              }
          }
      
          Image {
              x: 0
              y: 500
              width: 500
              fillMode: Image.PreserveAspectFit
              source: "qrcode.png"
          }
      
          Image {
              x: 500
              y: 500
              fillMode: Image.PreserveAspectFit
              source: "mask.png"
          }
      }
      

      Attachments

        1. mask.png
          mask.png
          40 kB
        2. qrcode.png
          qrcode.png
          0.8 kB
        3. Screenshot from 2019-08-14 17-40-57.png
          Screenshot from 2019-08-14 17-40-57.png
          782 kB

        Issue Links

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

          Activity

            People

              henning Henning Gründl
              henning Henning Gründl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes