Qt5中, 取消了QTextCodec::setCodecForTr()和QTextCodec::setCodecForCString()这两个函数,而且网上很多都是不推荐这种写法。我的问题代码:#include "helloqt.h" #include <QtWidgets/QApplication> #include int main(int argc, char *argv[]) { QApplication a(argc, argv); HelloQt w; w.setWindow...