I have a QMessageBox like this:
QMessageBox
QMessageBox::question(this, tr(\"Sure want to quit?\"), tr(\"Sure to quit?\"), QMessageBox::Yes | QMessageB
There's no reason to do this. These texts are localized in Qt's own localization files. You need to provide, and perhaps also load, Qt's localizations within your application.