解決 Ubuntu 14.04 下 Qt5 中文顯示和中文輸入法問題
阿新 • • 發佈:2019-02-08
1qt5安裝
軟體中心中安裝 qt creater,此時Qt無法顯示中文 且無法輸入中文
1 中文顯示
如果要設定中文等語言,還要下載一些語言檔案。可以到http://qt-project.org上下載一個包,安裝後把語言檔案都複製到/usr/share/qtcreator/translations。
2中文輸入
語言包要安裝完整 系統設定 -> 語言設定中可以安裝中文語言包
下載並安裝 搜狗拼音輸入法 for linux
確定搜狗輸入法可用
解除安裝ibus
sudo apt-get remove ibus
登出或重啟
重新安裝ibus
sudo apt-get install ibus-pinyin unity-control-center unity-control-center-signon webaccounts-extension-common xul-ext-webaccounts
系統設定 -> 語言設定中將預設輸入法切換為fcitx
安裝fcitx-frontend-qt5
sudo apt-get install fcitx-frontend-qt5
登出或重啟 OK
注:以上過程是全部安裝過程,不確定 解除安裝和重灌ibus是否必要