how to change the font.family of a qml app on android smartphone? I use Qt 5.3.
I've tried to set the QApplication::setFont() and also the font.family property of the qml component:
import QtQuick 2.3
import QtQuick.Controls 1.2
ApplicationWindow {
id: mainWindow
visible: true
width: 640
height: 480
Text {
font.pointSize: 24;
color: Qt.rgba(0.2,0.2,0.2,1);
font.family: "Courier";
text: qsTr("MyText");
}
}
but nothing seems to work.. The only thing that happens on using setFont() is that the font size scale.