-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.qml
26 lines (24 loc) · 830 Bytes
/
main.qml
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
import QtQuick 2.12
import QtQuick.Window 2.12
import FontAwesomeQml 1.0
import FontAwesomeHash 1.0
Window {
visible: true
width: 640
height: 480
title: qsTr("FontAwesomeQML hash / ListModel example")
ListView {
anchors.fill: parent
model: ListModel {
ListElement {glyph: "fa_moon"; gcolor: "black"; gtext: "Sleep well"}
ListElement {glyph: "fa_sun"; gcolor: "yellow"; gtext: "Most favorite"}
ListElement {glyph: "fa_cloud_sun_rain"; gcolor: "orange"; gtext: "Nice either"}
ListElement {glyph: "fa_snowflake"; gcolor: "lightgrey"; gtext: "Miss you..."}
}
delegate: Text {
font.family: FAQ.fontFamily
font.pointSize: 50
text: FAQ.icon(FAQH.strToGlyph(glyph), gcolor) + gtext
}
}
}