-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomDelegate.qml
More file actions
37 lines (34 loc) · 1.02 KB
/
CustomDelegate.qml
File metadata and controls
37 lines (34 loc) · 1.02 KB
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
35
36
import QtQuick 2.0
Component {
id: delegateItem
Item{
Rectangle {
width: parent.width
height: 120
Image {
id: imageItem
width: 150
height: 105
source: pathFile
}
Text {
id: itexItem
anchors.top: imageItem.bottom
font.family: "Alias"
//anchors.centerIn: imageItem.anchors.centerIn
anchors.horizontalCenter: imageItem.anchors.horizontalCenter
anchors.topMargin: 5
//anchors.leftMargin: 50
// anchors.verticalCenter: parent.verticalCenter
// anchors.horizontalCenter: parent.horizontalCenter
font.pixelSize: 14
// delegate can directly use ListElement role name
text: nameFile
scale: {
x: "1.0001"
y: "1.0001"
}
}
}
}
}