[Solved] How to change the default font of QML?
QML and Qt Quick
2
Posts
1
Posters
10.5k
Views
1
Watching
-
wrote on 27 Mar 2012, 06:23 last edited by
I try to set by
@ QmlApplicationViewer viewer;
viewer.setFont(QFont("MHeiM-C-GB18030-S60"));
viewer.setSource(QUrl(QLatin1String("qrc:/main.qml")));@But it doesn't work.
-
wrote on 27 Mar 2012, 06:44 last edited by
OK. I use this in my main file and get what I want.
@app->setFont(QFont("MHeiM-C-GB18030-S60"));@
2/2