PDA

View Full Version : About character of QMenu in Qt 4.7



Wong
15th March 2011, 09:01
In Qt Designer, All componnet's QMenu show Chinese, But in Qt Creator, show english.
Why? And how to set? :(

6087

Wong
15th March 2011, 12:15
Help! Failed all the time.... :(:(:(

nightghost
15th March 2011, 17:27
http://www.qt.gitorious.org/qt-creator/pages/FrequentlyAskedQuestions (3. answer may help) But according to http://developer.qt.nokia.com/forums/viewthread/198 the only official supported languages are english, german, polish (but the post is quite old)

Wong
16th March 2011, 03:47
:( 3Q, I will try again...

Added after 57 minutes:

;) It's Ok! It need a qt_zh_CN.qm

In main function, add codes


QTranslator ts;
ts.load(":/qt_zh_CN.qm");
app.installTranslator(&ts);