If you are looking for software to use, go to Huajun Software Park! software release

What should I do if I cannot input Chinese using QT in Ubuntu?

Author: Uchiha Sasuke Date: 2017-05-17

Ubuntu 32bit
Ubuntu 32bit-16.10 official version

Installation and production Storage: 711980KB Time: 2009-10-26

Software introduction: Ubuntu is an operating system completely based on Linux. It is not only free, but also provided by professionals and amateurs...

Download now

QT Creator is a lightweight integrated development environment. In the Ubuntu system operation, Chinese cannot be input when using QT. Today, Huajun editor will show you what to do if Ubuntu cannot input Chinese using QT? I hope you will support and share the carefully selected content. If you like it, get it as soon as possible! .

53-1412301Q34H50.jpg

1 Install the Sogou input method (if you want to use the input method that comes with ubuntu, that’s fine, then don’t install it)

Go to Sogou's official website to download a Linux version of Sogou Input Method and install it according to the official website's installation steps.

2. To install qt5, look for qtcreator in the software center and install it directly.

3 Modify the configuration file. In your home folder, look for the profile file (profile is a hidden file, you can find it by pressing ctrl+H to display all files), and add in the last line:

$QTDIR,PATH=$PATH:$QTDIR/bin

LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

#IBusSetup

export XMODIFIERS=“@im=missing”

export GTK_IM_MODULE=fcitx

export QT_IM_MODULE=IBus

export IBus&

export LC_CTYPE=zh_CN.utf-8

4 Uninstall IBus. Enter sudo apt-get install ibus in the terminal.

5 After logging out or restarting, install ibus again.

After the installation is complete, go to System Settings - "Language Support" and change the keyboard input method to fcitx (because Sogou input method can only work under fcitx).

6 Log out again

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

8 Log out again

9 Open qt creator so that you can enter Chinese.

Input method shortcut keys can be set automatically, but Sogou input method and sunpinyin input method should not be repeated.

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

The above is the method summarized by the editor to solve the problem of unable to input Chinese in QT in Ubuntu. If you also encounter the same problem, you can use the method introduced in this article to solve it. I hope it will be helpful to you.

Related articles