Reprint address: Linux18.04 Qt5.9.7 ibus cannot input Chinese
In the recent Ubuntu18.04
case of using Qt
the situation encountered can not enter Chinese development
Ubuntu
The default input method is ibus
, and Qt
is supportedibus
Therefore, the following methods can easily solve the problem of unable to input Chinese
Modify /etc/profile
file
sudo vim /etc/profile
Add at the end of the file:
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
Save
Then restart