基于谷歌拼音 支持中文的qt 虚拟键盘 可以用于嵌入式环境
 
 
Go to file
zcy d48339e049 add doc 2024-04-12 18:24:16 +08:00
googlepinyin first commit 2020-07-31 14:50:46 +08:00
plugin first commit 2020-07-31 14:50:46 +08:00
testWindow first commit 2020-07-31 14:50:46 +08:00
test_exe first commit 2020-07-31 14:50:46 +08:00
README.md add doc 2024-04-12 18:24:16 +08:00
tgtsmlInputContextPlugin.pro first commit 2020-07-31 14:50:46 +08:00
tgtsmlInputContextPlugin.pro.user first commit 2020-07-31 14:50:46 +08:00

README.md

qt虚拟输入法可输入中文可用于ARM-LINUX

  1. 先编译googlepinyin注意选择release生成libgooglepinyin.a将改文件放到plugin/googlepinyin文件夹下
  2. 编译plugin生成libtgtsmlInputContextPlugin.so注意不要复制链接文件,终端输入ls -la查看链接文件将该文件复制到开发板qt的plugins/platforminputcontexts文件夹下若无platforminputcontexts文件夹则手动建立
  3. 将plugin下的dict文件夹放到工程编译生成的APP同一目录下
  4. 在工程的main.cpp的主函数中添加qputenv("QT_IM_MODULE", QByteArray("tgtsml"));注意放到QApplication a(argc, argv);之前
  5. 运行APP点击文本框即可弹出输入法

教程链接:

https://blog.csdn.net/qq_32605451/article/details/107705710

原链接:

https://gitee.com/smartwell/QtInputMethod_GooglePinyin?_from=gitee_search

本人实际测试在qt5.6下嵌入式环境可用

file.gif