/* * AdvoTracker - Hotline tackingtool for Advocats * * Copyright (c) 2017 Ralf Zerres . */ import QtQuick 2.10 // Qt 5.10 import QtQuick.Controls 2.3 // Qt 5.10 import QtQuick.Layouts 1.3 // Qt 5.10 import QtGraphicalEffects 1.0 Item { property Component mycomponent: userImage QtObject { id: internalSettings // Hiedemann: Logo-Farbe "Rot" property color color: "#6f1a32" //property radius radius: 48 } Component { id: userImage Rectangle { id: imageRoot; width: 96 height: 96 radius: 48 Image { id: sourceImage sourceSize: Qt.size(parent.width, parent.height) //height: parent.height //height: parent.width fillMode: Image.PreserveAspectFit smooth: false anchors.fill: parent source: "/images/nobody.png" //sourceSize: Qt.size(parent.width, parent.height) } Rectangle { id: maskImage //sourceSize: Qt.size(parent.width, parent.height) radius: parent.radius color: internalSettings.color } OpacityMask { anchors.fill: sourceImage source: sourceImage maskSource: maskImage } } // imageRoot } // userImage } // Item