QT Creator in Ubuntu 15.04 supports Chinese Input
After QT5.4 (32-bit) is installed in the Ubuntu 15.04 system, when writing code and comments, I find that Chinese characters cannot be written. The following is my solution:
1. Install fcitx-frontend-qt5
Sudo apt-get install fcitx-frontend-qt5
2. Copy the installed fcitx-frontend-qt5 to a specified directory.
We can enter (dpkg-L fcitx-frontend-qt5) in the command line to view the path after installation, generally in:
/Usr/lib/i386-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin. so
To copy the above files to the installation directory of qt, You need to copy them to the following two directories. After copying the files, the name cannot be changed:
Qt installation directory/Tools/QtCreator/bin/plugins/platforminputcontexts/
Qt installation directory/5.4/gcc/plugins/platforminputcontexts/
Note: Each user's qt installation directory is different. My/opt directory is copied to the following two directories:
/Opt/Tools/QtCreator/bin/plugins/platforminputcontexts/
/Opt/5.4/gcc/plugins/platforminputcontexts/
3. modify the configuration file and use vim to open the fcitx file in/etc/X11/xinit/xinput. d/fcitx and modify it as follows (my 32-bit QT ):
The changes are as follows:
The modification is as follows:
4. restart the system. Open QT and you will find that you can enter Chinese characters.
Install sogou input method and support for Qt Creator on Ubuntu Linux
Create a desktop startup icon for the installed Qt Creator in Linux
Install QT Creator 2.5.0 on Ubuntu 11.04
Qt creator for PlayBook Installation Process
Qt Creator details: click here
Qt Creator: click here
This article permanently updates the link address: