标签:orm codec pre sudo cat get NPU 中文显示 gnu
sudo apt-get install libfcitx-qt5-dev
cd /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/
sudo cp libfcitxplatforminputcontextplugin.so /opt/Qt5.13.0/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts/
sudo cp libfcitxplatforminputcontextplugin.so /opt/Qt5.13.0/5.13.0/gcc_64/plugins/platforminputcontexts/
在main.cpp中添加头文件:
#include <QTextCodec>
在QApplication a(argc, argv);
后添加两行代码
QTextCodec::setCodecForCStrings(QTextCodec::codecForLocale());
QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
标签:orm codec pre sudo cat get NPU 中文显示 gnu
原文地址:https://www.cnblogs.com/raina/p/11315681.html