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

GaussianBlur rendered differently on other platforms

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/Wayland

      Description

      Using the example below you can see differences between linux and android/ios devices.

       

      Imports:

      import QtQuick 2.14
      import QtQuick.Controls 2.14
      import QtGraphicalEffects 1.14

      Code:

      Item {
              x: 50
              y: 50
              width: 140
              height: 160
              Rectangle {
                  id: shadowSource
                  radius: 18
                  color: "#CCCCCC"
                  opacity: 0.9
                  anchors {
                      fill: parent
                      topMargin: 20
                      leftMargin: 8
                      rightMargin: 8
                  }
              }
      
              GaussianBlur {
                  anchors.fill: shadowSource
                  source: shadowSource
                  radius: 18
                  deviation: 10
                  samples: 37
                  cached: true
                  transparentBorder: true
              }
      
              Rectangle {
                  radius: 18
                  anchors.fill: parent
                  color: "#FFFFFF"
                  Text {
                      text: "Test"
                      anchors.centerIn: parent
                  }
              }
          }
      

      The screenshots show this example started in an android emulator (looks the same on real android and iOS devices) and locally on a linux machine. The linux machine screenshot shows how is should look like.

       

        Attachments

        1. GaussianBlur_Android.png
          GaussianBlur_Android.png
          2 kB
        2. GaussionBlur_Linux.png
          GaussionBlur_Linux.png
          4 kB
        3. qtbug82830.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            jokarlss Jonas Karlsson
            Reporter:
            tobiasb Tobias Bräutigam
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes