QT Creator in Ubuntu 15.04 supports Chinese Input

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.