Important: Please read the Qt Code of Conduct -

Automated loading of language(say chinese) fonts in QML

  • Hi,
    Please HELP!!
    I have a qml application (QT version 5.3.2 ) running on imx6
    I am loading the text of qml listview from a listmodel.I have mixed language data
    (english+chinese) to load in the list.But i could not display chinese fonts into the list.
    Then I copied wqy-microhei.ttf into /usr/lib/fonts,then added FontLoader in qml
    and setting the font family to the Text of ListView.It worked.

    But is it necessary to use the Font Loader and set the font family in qml?.Can't these language fonts be used directly from the path(/usr/lib/fonts) by Qt?


Log in to reply