Ubuntu qt uses Sogou input method

Find out if fcitx-frontend-qt5 is installed

sudo cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so  /home/xichun/Qt5.9.0/5.9/gcc_64/plugins/platforminputcontexts

After the following prompt appears, it means that there is a plugin called libfcitxplatforminputcontextplugin.so:

/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so

If not, install the plugin

sudo apt-get install fcitx-frontend-qt5

Put the plugin libfcitxplatforminputcontextplugin.so in your own Qt installation directory: According to the result of step 1, you know that the path of this plugin is:

/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so

Then copy this plugin to the following folders in the Qtcreator installation directory (my qt is in the home directory)

sudo cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so  /home/xichun/Qt5.9.0/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts

sudo cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so  /home/xichun/Qt5.9.0/5.9/gcc_64/plugins/platforminputcontexts

Then you have to change the execution permission of the plugin, because the plugin copied in the past has no execution permission by default.

sudo chmod -R 777 /home/xichun/Qt5.9.0/5.9/gcc_64/plugins/platforminputcontexts/*

sudo chmod -R 777 /home/xichun/Qt5.9.0/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts/*

Finally restart qt

Leave a Comment

Your email address will not be published. Required fields are marked *