forked from Konstantin2/CallMyPhone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContactsForm.ui.qml
More file actions
38 lines (33 loc) · 892 Bytes
/
ContactsForm.ui.qml
File metadata and controls
38 lines (33 loc) · 892 Bytes
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
37
38
import QtQuick 2.4
import QtQuick.Controls 2.2
Item {
width: 400
height: 400
property alias listModel: listModel
ScrollView {
anchors.leftMargin: 5
anchors.fill: parent
ListView {
id: listView
anchors.fill: parent
model: ListModel {
id: listModel // задаём ей id для обращения
}
delegate: ItemDelegate {
width: parent.width
height: 50
Column {
width: parent.width
Text {
font.pixelSize: 20
text: name
}
Text {
font.pixelSize: 16
text: date + " " + number
}
}
}
}
}
}