import QtQuick 2.5 import QtGraphicalEffects 1.0 Item { width: 100 height: 100 AnimatedSprite { id: sprite anchors.fill: parent source: "100x100.png" } OpacityMask { anchors.fill: parent source: sprite maskSource: sprite } }