We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e7eee5 commit f60231cCopy full SHA for f60231c
example/main.cpp
@@ -68,7 +68,13 @@ int main(int argc, char *argv[])
68
QCoreApplication::installTranslator(&translator_app);
69
70
QTranslator translator_qt;
71
+
72
+ #if QT_VERSION < 0x060000
73
+ QString path = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
74
+ #else
75
QString path = QLibraryInfo::path(QLibraryInfo::TranslationsPath);
76
+ #endif
77
78
if (translator_qt.load(QLocale(), "qt", "_", path))
79
QCoreApplication::installTranslator(&translator_qt);
80
0 commit comments