Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that Ubuntu can not input Chinese by using the integrated development environment QT

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains how to solve the problem that Ubuntu can't input Chinese when using the integrated development environment QT. Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to solve the problem that Ubuntu can't input Chinese when using the integrated development environment QT.

1 install Sogou Input, (if you want to use the input method that comes with ubuntu, it's OK, then don't install it)

Download a linux version of Sogou Input from Sogou's official website and install it in the steps of the official website.

2 qt5 installation, 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 hidden file, press ctrl+H, show all files can be found), and add on the last line:

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

LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

# IBus Settings

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 and enter sudo apt-get install ibus at 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 can only work under fcitx)."

6 Log out again

7 to install ibus-qt4, enter apt-get install libus-qt4 at the terminal

8 Log out again

9 Open qt creator so that you can enter Chinese.

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

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

At this point, I believe you have a deeper understanding of "Ubuntu using the integrated development environment QT can not input Chinese how to solve", might as well to practical operation it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report