解决ubuntu14.04下Qt 5.3.1下的QtCreator fcitx,ibus不能输入中文

ubuntu 14.04从Qt官网下载的最新版qt,安装过程很顺利,但却发现没办法输入中文(我用的是 fcitx), 即便下载了fcitx-frontend-qt5和fcitx-frontend-qt4也仍是没用。linux

想必是qt版本的缘由吧。ubuntu

后来,试着将从源中安装的fcitx-frontend-qt5复制到Qt安装目录下,居然能够了。frontend

方法以下(fcitx输入法):spa


1.安装fcitx-frontend-qt5orm

sudo apt-get install fcitx-frontend-qt5ci

2.将安装后的fcitx-frontend-qt5复制到qt安装目录get

一般,fcitx-frontend-qt5在下面的目录路径中(可用命令dpkg -L 包名看文件安装路径):input

/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
qt

将该文件复制到it

qt安装目录//Tools/QtCreator/bin/plugins/platforminputcontexts

qt安装目录/5.3/gcc_64/plugins/platforminputcontexts


从新打开 QtCreator,终于能够输入中文了。

若是仍是不行,重启电脑,再打开Qtcreator,就能够了

ibus的操做方法与这相似

其实不少qt编写的程序没法输入中文,将fcitx-frontend-qt5复制到该程序相应的目录下,就能够正常了,如wps和linux  下的代码阅读软件 understand,用这种方法都解决了输入法没法输入中文的问题

相关文章
相关标签/搜索