import QtQuick 2.13 import QtGraphicalEffects 1.13 Item { property alias color: idOverlay.color property alias source: idImage.source Image { id: idImage visible: false fillMode: Image.PreserveAspectFit sourceSize.width: width sourceSize.height: height } ColorOverlay { id: idOverlay anchors.fill: parent source: idImage } }