I made a translate in Qt Linguist but I have a problem with one object. In constructor I have:
acClose is a QAction* which I decleared in WindowA.Qt Code:
ui(new Ui::WindowA) { (...) acClose = ui->menuBar->addAction( tr( "Close", "menu" ) ); (...) }To copy to clipboard, switch view to plain text mode
WindowA has a QTranslator as member.
In my program I have menu for changing language. When I choose another lang, then application translate all text but not this "Close" label for acClose.
How to resolve this?
Bookmarks