Ubuntu上QT不能使用中文输入,解决办法参考
1、将输入法的相关文件拷贝至qt相应目录下
cd /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/
sudo cp libfcitxplatforminputcontextplugin.so /opt/Qt5.11.2/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts/
sudo cp libfcitxplatforminputcontextplugin.so /opt/Qt5.11.2/5.11.2/gcc_64/plugins/platforminputcontexts/
添加执行权限
/opt/Qt5.11.2/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
sudo chmod +x /opt/Qt5.11.2/5.11.2/gcc_64/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so