tests/manual/scenegraph_lancelot/data/shaders/image/async.qml
raw| 1 | import QtQuick 2.0 |
| 2 | |
| 3 | Item { |
| 4 | width: 320 |
| 5 | height: 480 |
| 6 | |
| 7 | Image { |
| 8 | id: image; |
| 9 | source: "face-smile.png" |
| 10 | visible: false |
| 11 | asynchronous: true |
| 12 | } |
| 13 | |
| 14 | ShaderEffect { |
| 15 | anchors.fill: image |
| 16 | property variant source: image |
| 17 | fragmentShader: "qrc:shaders/gradient2.frag" |
| 18 | visible: image.status == Image.Ready |
| 19 | } |
| 20 | } |