QT图片模糊效果qml

版权声明:如果对您有帮助,跪求点赞!本文为博主原创作品,转载请声明出处! https://blog.csdn.net/u011086209/article/details/91042707
  import QtQuick 2.0
  import QtGraphicalEffects 1.0

  Item {
      width: 300
      height: 300

      Image {
          id: bug
          source: "images/bug.jpg"
          sourceSize: Qt.size(parent.width, parent.height)
          smooth: true
          visible: false
      }

      FastBlur {
          anchors.fill: bug
          source: bug
          radius: 32
      }
  }

猜你喜欢

转载自blog.csdn.net/u011086209/article/details/91042707