QMLのフォント

QMLのフォントはfont.familyで設定できる。ではどのフォントが利用可能なのか。答えはstack overflowにあった。

stackoverflow.com

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

        delegate: Item {
            height: 40
            width: ListView.view.width
            Text {
                anchors.centerIn: parent
                text: modelData
                font.family: modelData
            }
        }
}

Qt.fontFamilies()で参照可能。文字化け?するものもありますが、ほとんどのフォントがサンプルで表示されます。