1. 程式人生 > >解決Qt Creator不能輸入中文的問題(fcitx輸入框架)

解決Qt Creator不能輸入中文的問題(fcitx輸入框架)

文章轉自 https://blog.csdn.net/discoverer100/article/details/52431958

1、環境:

       系統: debian9

       Qt版本: Qt5.6.3

       輸入法: 搜狗輸入法

2、解決方法:

    2-1   安裝 fcitx-frontend-qt5

apt-get install fcitx-frontend-qt5

   2-2  進入以下目錄

cd /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts

  2-3  將該目錄的檔案複製到下面的兩個目錄(根據Qt 5 的安裝路徑而定)

~/Qt5.6.3/5.6.3/gcc_64/plugins/platforminputcontexts
~/opt/Qt5.6.3/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts

重啟qt,就可以在qtcreator中輸入中文了。