Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
I have 4 fonts: When UI language is English, use font1.ttf font2.ttf When language is Chinese, Use: font3.ttf font4.ttf
How to do this? Thanks
After calling QApplication::installTranslator call QApplication::setFont
QApplication::installTranslator
QApplication::setFont
@VRonin Thanks, but I have 2 different ttf fonts each Language, app.setFont(xxx) only change the default font. For example: All title use bold.ttf, others use regular.ttf
There's no such a thing as a generic "title". What widgets are you using?
@VRonin Sorry for not clearly expressed. For example:
2)Chinese: Change QTabBar{font:"Font1_CN"} Default {font:"Font2_CN"}
Hi,
Are you using style sheet for that ?
@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.