summaryrefslogtreecommitdiffstats
path: root/examples/declarative/fonts/availableFonts.qml
blob: defa4cedff0e4f4ba25ed559f4253e16b42359ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import Qt 4.7

Rectangle {
    width: 480; height: 640; color: "steelblue"

    ListView {
        anchors.fill: parent; model: Qt.fontFamilies()

        delegate: Item {
            height: 40; width: ListView.view.width
            Text {
                anchors.centerIn: parent
                text: modelData; font.family: modelData; font.pixelSize: 24; color: "white"
            }
        }
    }
}