Qt-Ubuntu QtCreator cannot input Chinese

Reprint address: Linux18.04 Qt5.9.7 ibus cannot input Chinese

In the recent Ubuntu18.04case of using Qtthe situation encountered can not enter Chinese development

UbuntuThe default input method is ibus, and Qtis supportedibus

Therefore, the following methods can easily solve the problem of unable to input Chinese

Modify /etc/profilefile

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

Guess you like

Origin blog.csdn.net/weixin_40774605/article/details/105222919