Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

QMessageBox doesn't translate the QString[Solved]

$
0
0
 QInputDialog::getText(this,tr("Open"),tr("New"),QLineEdit::Normal,tr(""),&ok); the translator is loaded and installed but open and new don’t get translated but if i do this : //define Open and New in the mainwindow header file QString Open,New; //then define a new function rename() { Open=tr("Open"); New=tr("New"); } then every time i switch the installer i call rename rename(); QInputDialog::getText(this,Open,New,QLineEdit::Normal,tr(""),&ok); translation works fine

Viewing all articles
Browse latest Browse all 13965

Trending Articles