System: Ubuntu 18.04.3 64bit
Software: QtCreator 4.8
When installing Ubuntu18.04 already installed Sogou input method fcitx framework, which will not be installed Sogou input method and fcitx
Qt fcitx only need to install the support library, enter the command in the terminal mounting support library Qt of fcitx
sudo apt-get install fcitx-frontend-qt5
After installation, you need to enable support for Qt fcitx will copy the relevant files to the Qt library compiler plug-in library and Qt plug-in library of QtCreator
Library files libfcitxplatforminputcontextplugin.so, installed by default in the directory / usr / lib / x86_64-linux-gnu / qt5 / plugins / platforminputcontexts / in
# QTInstallPath = installation directory of Qt, I-opensource-use Linux-qt an x64- 5.9 . 8 .run install cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so $ QTInstallPath / 5.9 . . 8 / gcc_64 / plugins / platforminputcontexts / the chmod A + X $ QTInstallPath / 5.9 . . 8 / gcc_64 / plugins / platforminputcontexts / libfcitxplatforminputcontextplugin.so CP /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so $ QTInstallPath / Tools / QtCreator / lib / Qt / plugins / platforminputcontexts / chmod a+x $QTInstallPath/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
Restart QtCreator to enter Chinese