Is it possible to change the language of the QColorDialog? [solved]
-
I want to change the language of QColorDialog.
Window title, was able to be changed in SetWindowTitle function.
"Basic Colors" label, "Pick Screen Color" button, "Custom colors" label, "Add to Custom Colors" button, I want to change these languages.
Could you tell me the way?
-
Hi,
Do you mean through internationalization ?
-
You're welcome !
Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)
You should also up-vote the answer(s) that helped you so other users may more easily find them
-
Such as ColorDialog, how to switch the language of the dialog that are available in the Qt is as follows .
Page that was in reference#include <QApplication> #include <QTranslator> #include <QLibraryInfo> int main(int argc, char *argv[]) { //1 : Get the language setting of the system QTranslator qtTranslator; qtTranslator.load("qt_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath)); QApplication a(argc, argv); //2 : Installation of language setting a.installTranslator(&qtTranslator); return a.exec(); }