i'm currently using several times QMessageBox
, but whenever i do
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
this shows 2 buttons with realtive No
and Yes
labels, however my application is based on another language, and so I was wondering if there were some QLocal / QApplication
(maybe) settings to change in order to translate those labels to my desiderd language.
I've tried
QLocale ql(QLocale::Language,QLocale::Country);
msgBox.setLocale(ql);
But it doesn't seems to work, and neither
QLocale::setDefault(QLocale(QLocale::Language,QLocale::Country));
has worked for me