summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-02-28 21:39:26 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-02-28 21:39:26 +0700
commit89cca6fe8f4d0bd93891d19031aa8b0d19a8e02f (patch)
tree53a351150bc67db9fa830a955a6cb9d27278a451
parent660116069f473bc4194030ada6063cf07071129a (diff)
start InstructorCardItem.ui.qml
-rw-r--r--InstructiorCardItem.ui.qml34
1 files changed, 34 insertions, 0 deletions
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