• 大小: 266KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-29
  • 语言: 其他
  • 标签: arm  输入法  键盘  

资源简介

arm下的输入法模块,需要的可以借鉴下,基于Qt4编程。

资源截图

代码片段和文件信息

#include “callKeyBoard.h“
#include 
#include 

CallKeyBoard::CallKeyBoard():QInputContext()
{
    im=new IMframe();
    im->kb->setVisible(false);
    QWSServer::setCurrentInputMethod(im);
}

CallKeyBoard::~CallKeyBoard()
{
    delete im;
}
bool CallKeyBoard::filterEvent(const QEvent *event)
{
    if (event->type() == QEvent::RequestSoftwareInputPanel)
    {
        qDebug()<<“softkeyboard“;
        im->kb->setVisible(true);
        return true;
    } else if (event->type() == QEvent::CloseSoftwareInputPanel) {
        im->kb->setVisible(false);
        return true;
    }
    return false;
}

QString CallKeyBoard::identifierName()
{
    return “CallKeyBoard“;
}

void CallKeyBoard::reset()
{
}

bool CallKeyBoard::isComposing() const
{
    return false;
}

QString CallKeyBoard::language()
{
    return “en_US“;
}




 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-12-03 15:27  keyboard\
     文件         891  2013-05-22 20:46  keyboard\callKeyBoard.cpp
     文件         323  2013-05-22 20:46  keyboard\callKeyBoard.h
     文件        1550  2013-05-23 18:33  keyboard\chnpanel.cpp
     文件         371  2013-05-22 20:46  keyboard\chnpanel.h
     文件         543  2013-05-22 20:46  keyboard\clicklabel.cpp
     文件         427  2013-05-22 20:46  keyboard\clicklabel.h
     文件      387072  2013-05-22 20:46  keyboard\data.db
     文件        7488  2013-05-23 18:33  keyboard\im.cpp
     文件        1180  2013-05-22 20:46  keyboard\im.h
     目录           0  2014-12-03 15:06  keyboard\images\
     文件       13824  2013-05-22 20:46  keyboard\images\Thumbs.db
     文件         241  2013-05-22 20:46  keyboard\key.cpp
     文件         218  2013-05-22 20:46  keyboard\key.h
     文件        2531  2013-05-23 18:33  keyboard\keyboard.cpp
     文件         886  2013-05-22 20:46  keyboard\keyboard.h
     目录           0  2014-12-03 15:06  keyboard\qss\
     文件         787  2013-05-22 20:46  keyboard\qss\inputmethod.qss
     文件      117337  2013-05-22 20:46  keyboard\qt_zh_CN.qm
     文件        1445  2014-12-03 15:48  readme.txt
     文件         168  2014-06-23 22:04  shurufa.txt

评论

共有 条评论