Ubuntu can't input Chinese using QT. What should I do?

  

QT Creator is a lightweight integrated development environment. In Ubuntu system operation, you cannot input Chinese when using QT. How to deal with this situation? The following small series will tell you how Ubuntu can solve the problem that QT can't input Chinese.

1 installed Sogou input method, (if you want to use ubuntu own input method is also no problem, it is not installed)

The search Gouguan network to download a version of linux Sogou input method, the installation of the official website steps can be installed.

2 qt5 installation, look for qtcreator in the software center, you can install it directly.

3 Modify the configuration file, in your home folder, look for the profile file (profile is hidden file, press ctrl+H, all files can be found), add in the last line:
< $>>QQIRIR,PATH=$PATH:$QTDIR/bin

LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

#IBus设置

export XMODIFIERS=“@ Im=missing”

export GTK_IM_MODULE=fcitx

export QT_IM_MODULE=IBus

export IBus &

export LC_CTYPE=zh_CN.utf-8

4 Uninstalling IBus Enter sudo apt-get install ibus in the terminal,

5 After logging out or restarting, install ibus again,

After installation, enter system setup ->Language support Change the keyboard input mode to fcitx (because Sogou input method can only work under fcitx),

6 Log out again

7 Install ibus-qt4 Enter apt-get install libus- in the terminal Qt4

8 Log out again

9 Open qt creator so that you can enter A.

The input method shortcuts can be set automatically, but the Sogou input method and the sunpinyin input method should not be repeated.

You can enter ibus-setup in the terminal for ibus related configuration.

The above is to solve the Ubuntu QT can not input Chinese method, if you have encountered the same problem, you can use the method described in this article for processing, I hope to help you.

Copyright © Windows knowledge All Rights Reserved