I did some googling and found a post from Yong's website:
http://yong.dgod.net/read.php?tid=1987
(This site is often inaccessible. When that happens, I resort to google's cache page. Try googling "小小输入法 QT" and you will see that page.)
Reading dgod's posts, I confirmed that there is problem with QT.
Following his advice, I downloaded the qt lib file from:
http://yongim.ys168.com/
In the QT5 directory.
I downloaded libyongplatforminputcontextplugin.so (38.8KB5.5.1 64) and put it in /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/.
(There are different QT versions for this file - libyongplatforminputcontextplugin.so, but I only tried this one.)
Then open a terminal, run:
Code: Select all
export GTK_IM_MODULE=yong
export QT_IM_MODULE=yong
Please note that this is different from what icake inserted in .xinitrc
Code: Select all
export GTK_XIM_MODULES="yong"
export QT_XIM_MODULES="yong"
I don't understand the difference between XIM and IM. Will research it later.
Then, keep this terminal open, and run a QT program from that same terminal (so that these exported environment variables are inherited), such as "qtnote", and Yong works. I also tested it for qpdfview.
At this moment I have not tried modifying the .xinitrc file to automatically export these variables on startup, because I can't wait to read some linux input method stuff, which is a huge pain in the ass and something irresistable for me to learn.