blob: 0add453a034fed8d05dccf60c3efb0726ead7c4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
}
}
}
|