Hmm, this does not work:
void CLanguageSelectorWidget::translateSlovene()
{
m_Translator.load("translations/eROSystem_client_SL"); // loads translator
//QApplication::installTranslator(&m_Translator); // installs it
qApp->installTranslator(&m_Translator); // installs it
emit accept(); // closes window
}
void CLanguageSelectorWidget::translateSlovene()
{
m_Translator.load("translations/eROSystem_client_SL"); // loads translator
//QApplication::installTranslator(&m_Translator); // installs it
qApp->installTranslator(&m_Translator); // installs it
emit accept(); // closes window
}
To copy to clipboard, switch view to plain text mode
Why not???
In main.cpp there is a very similar code that works:
// translator setup
qtTranslator.load("translations/eROSystem_client_SL");
a.installTranslator(&qtTranslator);
// translator setup
QTranslator qtTranslator;
qtTranslator.load("translations/eROSystem_client_SL");
a.installTranslator(&qtTranslator);
To copy to clipboard, switch view to plain text mode
Why the upper code chunk does not work?? Signals/Slots are ok, I've checked.
Bookmarks