VisualEffect.qml 401 B

123456789101112131415161718192021
  1. import QtQuick 2.5
  2. import "effects" as Effects
  3. Item {
  4. property alias target: source.sourceItem
  5. anchors.fill: target
  6. ShaderEffectSource {
  7. id: source
  8. smooth: true
  9. hideSource: true
  10. sourceItem: target
  11. }
  12. Effects.Emboss {
  13. source: source
  14. anchors.fill: parent
  15. targetWidth: parent.width
  16. targetHeight: parent.height
  17. }
  18. }