我在代码中使用QTranslator为什么不好使呢?hellotr_zh_CN.ts 和qm都生成在代码的相同目录下,ts里的type我也修改成了“你好”为什么显示的就是英文呢?
QApplication app(argc, argv);
QTranslator translator;
translator.load("hellotr_zh_CN");
app.installTranslator(&translator);
QPushButton hello(QPushButton::tr("Hello world!"));
hello.resize(100, 30);
hello.show();
return app.exec();