QT5.5 cannot input Chinese when writing programs under Ubuntu system

Source: Internet
Author: User

Workaround:

1, installation Fcitx-frontend-qt5

[Email protected]:/home/he# sudo apt-get install fcitx-frontend-qt5

2. Copy the installed FCITX-FRONTEND-QT5 to the QT installation directory

Typically, FCITX-FRONTEND-QT5 is in the following directory path (the file installation path can be seen with the command dpkg-l package name ):

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

Copy the file to

/home/he/qt5.5.1/tools/qtcreator/bin/plugins/platforminputcontexts/

And

/home/he/qt5.5.1/5.5/gcc_64/plugins/platforminputcontexts/

In

CP LIBFCITXPLATFORMINPUTCONTEXTPLUGIN.SO/HOME/HE/QT5.5.1/TOOLS/QTCREATOR/BIN/PLUGINS/PLATFORMINPUTCONTEXTS/CP libfcitxplatforminputcontextplugin.so/home/he/qt5.5.1/5.5/gcc_64/plugins/platforminputcontexts/

Re-open Qtcreator, finally can input Chinese.

#include <iostream>using namespace Std;int main () {cout << "Hello Hello world!" << Endl; return 0;}

If still not, restart the computer, and then open the Qtcreator, you can



Reference blog:

http://my.oschina.net/u/219482/blog/341452

This article is from the "10628473" blog, please be sure to keep this source http://10638473.blog.51cto.com/10628473/1767599

QT5.5 cannot input Chinese when writing programs under Ubuntu system

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.