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?

  • Lifetime Qt Champion


    Do you mean through internationalization ?

  • Thanks you!
    As a result of trial in a document that had you tell me , we were able to safely run .

  • Lifetime Qt Champion

    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(),
         QApplication a(argc, argv);
         //2 : Installation of language setting
         return a.exec();

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.