GithubHelp home page GithubHelp logo

qtinputmethod_googlepinyin's Introduction

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

qtinputmethod_googlepinyin's People

Contributors

hanshuaipeng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.