Better_Software_Header_MobileBetter_Software_Header_Web

Find what you need - explore our website and developer resources

Fixing a common antipattern when loading translations in Qt

QTranslator myappTranslator;
myappTranslator.load("myapp_" + QLocale::system().name());
QTranslator myappTranslator;
myappTranslator.load(QLocale(), "myapp", "_");
qtdoc-2.png

Not very discoverable

About KDAB


8 Comments

10 - Jul - 2020

Sys

15 - Jul - 2020

Linda

17 - Jul - 2020

Miłosz Kosobucki

12 - Aug - 2020

Linda

14 - Sept - 2020

Alexander

18 - Jan - 2021

Miłosz Kosobucki

2 - Mar - 2021

Andre

8 - Apr - 2021

Miłosz Kosobucki