How to change different fonts when change to different language.
-
wrote on 9 Aug 2018, 08:16 last edited by
I have 4 fonts:
When UI language is English, use
font1.ttf
font2.ttf
When language is Chinese, Use:
font3.ttf
font4.ttfHow to do this? Thanks
-
wrote on 9 Aug 2018, 08:28 last edited by
After calling
QApplication::installTranslator
callQApplication::setFont
-
wrote on 9 Aug 2018, 09:55 last edited by
There's no such a thing as a generic "title". What widgets are you using?
-
Hi,
Are you using style sheet for that ?
-
wrote on 21 Aug 2018, 01:18 last edited by
@SGaist said in How to change different fonts when change to different language.:
Yes SGaist
-
Then when the change language event happens, change the style sheet.