資源簡介
Qt實(shí)現(xiàn)中文輸入法面板,適合嵌入式設(shè)備輸入,也能在windows上跑,效果還不錯(cuò),輸入核心有兩種,一種是google的內(nèi)核一種是我基于數(shù)據(jù)庫實(shí)現(xiàn)的。體驗(yàn)程序:https://download.csdn.net/download/xiaoyan_yt/10634438
代碼片段和文件信息
#include?
#include?“xykeyboardfilter.h“
#include?“xyvirtualkeyboard.h“
#include?“xyskin.h“
#include?
//#define?TEST
#ifdef?TEST
#include?
#include?
#include?
#include?
static?void?sendInputText(const?QString?&text)
{
????QInputMethodEvent?*event?=?new?QInputMethodEvent;
????event->setCommitString(text);
????qApp->postEvent(qApp->focusWidget()?event);
}
#endif
#include?
int?main(int?argc?char?*argv[])
{
????QApplication?a(argc?argv);
//????XYSKIN->writeSkipToFile(“I:/DeskTop/test.skin“);
????XYSKIN->loadSkipWithFile(qApp->applicationDirPath()?+?“/skin/xyinput.skin“);
????XYVirtualKeyboard::getInstance()->show();
#ifdef?TEST
????//?測(cè)試代碼
????QWidget?widget;
????QVBoxLayout?*layout?=?new?QVBoxLayout(&widget);
????layout->addWidget(new?QLineEdit);
????layout->addWidget(new?QTextEdit);
????layout->addWidget(new?QLineEdit);
????widget.show();
????Qobject::connect(XYVirtualKeyboard::getInstance()?&XYVirtualKeyboard::send_commit?&sendInputText);
#endif
????a.setQuitOnLastWindowClosed(true);
????a.setWindowIcon(QIcon(“:/Keyboard.ico“));
????return?a.exec();
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????????22??2018-08-29?09:55??Soft-keyboard\.git\COMMIT_EDITMSG
?????文件????????309??2018-07-30?10:02??Soft-keyboard\.git\config
?????文件?????????73??2018-07-30?10:01??Soft-keyboard\.git\desc
?????文件?????????23??2018-07-30?10:02??Soft-keyboard\.git\HEAD
?????文件????????478??2018-07-30?10:01??Soft-keyboard\.git\hooks\applypatch-msg.sample
?????文件????????896??2018-07-30?10:01??Soft-keyboard\.git\hooks\commit-msg.sample
?????文件????????189??2018-07-30?10:01??Soft-keyboard\.git\hooks\post-update.sample
?????文件????????424??2018-07-30?10:01??Soft-keyboard\.git\hooks\pre-applypatch.sample
?????文件???????1642??2018-07-30?10:01??Soft-keyboard\.git\hooks\pre-commit.sample
?????文件???????1348??2018-07-30?10:01??Soft-keyboard\.git\hooks\pre-push.sample
?????文件???????4951??2018-07-30?10:01??Soft-keyboard\.git\hooks\pre-reba
?????文件????????544??2018-07-30?10:01??Soft-keyboard\.git\hooks\pre-receive.sample
?????文件???????1239??2018-07-30?10:01??Soft-keyboard\.git\hooks\prepare-commit-msg.sample
?????文件???????3610??2018-07-30?10:01??Soft-keyboard\.git\hooks\update.sample
?????文件???????7888??2018-08-29?09:55??Soft-keyboard\.git\index
?????文件????????240??2018-07-30?10:01??Soft-keyboard\.git\info\exclude
?????文件????????713??2018-08-29?09:55??Soft-keyboard\.git\logs\HEAD
?????文件????????713??2018-08-29?09:55??Soft-keyboard\.git\logs\refs\heads\master
?????文件????????188??2018-07-30?10:02??Soft-keyboard\.git\logs\refs\remotes\origin\HEAD
?????文件????????432??2018-08-29?09:55??Soft-keyboard\.git\logs\refs\remotes\origin\master
?????文件????????264??2018-07-31?19:29??Soft-keyboard\.git\ob
?????文件???????8681??2018-07-31?19:29??Soft-keyboard\.git\ob
?????文件???????8640??2018-07-30?10:24??Soft-keyboard\.git\ob
?????文件????????794??2018-08-29?09:55??Soft-keyboard\.git\ob
?????文件????????790??2018-07-30?10:24??Soft-keyboard\.git\ob
?????文件????????212??2018-07-31?19:29??Soft-keyboard\.git\ob
?????文件????????179??2018-08-29?09:55??Soft-keyboard\.git\ob
?????文件????????964??2018-08-29?09:55??Soft-keyboard\.git\ob
?????文件?????????55??2018-07-31?19:29??Soft-keyboard\.git\ob
?????文件???????1500??2018-07-30?10:24??Soft-keyboard\.git\ob
............此處省略137個(gè)文件信息
評(píng)論
共有 條評(píng)論