qtranslator

How can I include C:\Qt\5.9.1\msvc2015\translations .qm files (Qt framework qm files) in Visual Studio Qt project?

浪尽此生 提交于 2020-01-15 01:46:27
问题 How can I include C:\Qt\5.9.1\msvc2015\translations .qm files (Qt framework qm files) in final release, Visual Studio Qt project? I am loading the files using: QTranslator* qtTranslator = new QTranslator(); bool ok = qtTranslator->load("qt_" + language, QLibraryInfo::location(QLibraryInfo::TranslationsPath)); in release and debug the translations work, but in the final build they don't and it is most probable that it's because they are not added. I noticed that if i move them in my project