After QT5.4 (32-bit) is installed under Ubuntu15.04 system, when writing code and comments, I find that Chinese characters cannot be written. The following is my solution: 1. Install the fcitx-frontend-qt5sudoapt-getinstallfcitx-frontend-qt52, copy the installed fcitx-frontend-qt5 to the specified directory. You can enter (dpkg-Lfcitx-f) in the command line
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 http://www.linuxidc.com/Linux/2015-01/111651.htm for Qt Creator on Ubuntu Linux
Create a desktop startup icon http://www.linuxidc.com/Linux/2012-08/67214.htm for the installed Qt Creator in Linux
Ubuntu 11.04 install QT Creator 2.5.0 http://www.linuxidc.com/Linux/2012-06/62607.htm
Qt creator for PlayBook installation process http://www.linuxidc.com/Linux/2012-05/60652.htm
Qt Creator: Click here
Qt Creator: Click here
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2016-03/129198.htm