You are not logged in.

Dear visitor, welcome to If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Tuesday, April 3rd 2012, 7:54pm

Problems with QTranslator

Hi guys and girls, I'm completely novice, and I'm completely blondie. I'm from Russia and I'm trying to translate my program on other languages. This is my project and it isn't working, maybe you can help me. It is without database, because it's too big to attach here....
Lynx-89 has attached the following file:
  • (14.82 kB - 3 times downloaded - latest: Aug 23rd 2012, 5:41am)


Tuesday, April 3rd 2012, 8:11pm

where is your question?
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.


Tuesday, April 3rd 2012, 8:19pm

The main problem that Translation does not work, that means when I check sth from menu "Language" nothing happens. But all the signs in English would have to transfer to the selected menu language.

this is the connection

grpAct = new QActionGroup(this);

this is the slot

void MainWindow::SwitchLanguage(QAction*)

if (ui->action_eng->isChecked()) {
translator.load("eng.qm","."); }
else if (ui->action_rus->isChecked()) {
translator.load("rus.qm","."); }
else if(ui->action_de->isChecked()) {
translator.load("de.qm","."); }
else if(ui->action_esp->isChecked()) {
translator.load("esp.qm","."); }
else {
translator.load("ch.qm","."); }