Translation issue: use another file for a certain form
-
Hi, I'm also having a problem trying to make a sample app works with translation. It seems that Qt does not translate ui components such as buttons when using Qt Designer. Here's part of my code:
QString translationFile = ":Translate_en.qm";
QTranslator *translator = new QTranslator; if (translator->load( translationFile )) qDebug() << "Translation file was found ..."; else qDebug() << "Translation file not found ..."; qApp->installTranslator(translator);
But it does not translate.
-
Hi and welcome to devnet,
Please don't reopen such old threads. Create a new one for your question.
"Here":http://qt-project.org/doc/qt-5/designer-using-a-ui-file.html you have an explanation on how to do it.