Ubuntu 14.04 download the latest version of QT from the QT official website, the installation process is very smooth, but found no way to enter Chinese (I use fcitx), even if the download of the fcitx-frontend-qt5 and fcitx-frontend-qt4 is still useless.
It must be the reason for the QT version.
Later, try to copy the fcitx-frontend-qt5 installed from the source to the QT installation directory, it is OK.
The method is as follows (fcitx Input Method ):
1. Install fcitx-frontend-qt5
2. Copy the installed fcitx-frontend-qt5 to the QT installation directory
Typically, the fcitx-frontend-qt5 is in the directory path below (available commandsDpkg-l package nameCheck the file installation path ):
/Usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin. So
Copy the file
Qt installation directory // tools/qtcreator/bin/plugins/platforminputcontexts
And
Qt installation directory/5.3/gcc_64/plugins/platforminputcontexts
Medium
Open qtcreator again and enter Chinese characters.
The ibus operation method is similar to this
Note: Later, I found that many QT program can not input Chinese, copy the fcitx-frontend-qt5 to the corresponding directory of the program, you can be normal, such as WPS and Linux code reading software understand, this method solves the problem that the input method cannot input Chinese characters.