From 89cca6fe8f4d0bd93891d19031aa8b0d19a8e02f Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Tue, 28 Feb 2023 21:39:26 +0700 Subject: start InstructorCardItem.ui.qml --- InstructiorCardItem.ui.qml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 InstructiorCardItem.ui.qml diff --git a/InstructiorCardItem.ui.qml b/InstructiorCardItem.ui.qml new file mode 100644 index 0000000..0add453 --- /dev/null +++ b/InstructiorCardItem.ui.qml @@ -0,0 +1,34 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import QtQuick.Layouts 1.15 +import QtGraphicalEffects 1.12 + +Item { + + height: instructorCardAvatar.height + width: instructorCardAvatar.width + + RowLayout{ + id: instructorCardAvatar + Rectangle{ + Layout.margins: 8 + id: instructorThumbnail + radius: 8 + Layout.preferredHeight: 200 + Layout.preferredWidth: 200 + Layout.minimumHeight: 200 + Layout.minimumWidth: 200 + } + Image{ + id: instructorThumb + source: "https://eduport.webestica.com/assets/images/instructor/02.jpg" + sourceSize: Qt.size(instructorThumbnail.width, instructorThumbnail.height) + visible: false + } + OpacityMask{ + anchors.fill: instructorThumbnail + source: instructorThumb + maskSource: instructorThumbnail + } + } +} \ No newline at end of file -- cgit v1.2.3