1.安装fcitx-frontend-qt5
sudo apt-get install fcitx-frontend-qt5
2.将安装后的fcitx-frontend-qt5复制到qt安装目录
通常,fcitx-frontend-qt5在下面的目录路径中(可用命令dpkg -L 包名看文件安装路径):
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
将该文件复制到
qt安装目录//Tools/QtCreator/bin/plugins/platforminputcontexts
和
qt安装目录/5.3/gcc_64/plugins/platforminputcontexts
中
重新打开 QtCreator,终于可以输入中文了。
如果还是不行,重启电脑,再打开Qtcreator,就可以了