Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Translation issue: use another file for a certain form
jonecir last edited by
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.
Eddy last edited by
Splitting this up as a new thread.