总结工作QT学习相关,以方便以后查阅:
1、关于输入法设计:
#ifdef Q_WS_QWS
QWSServer::setCurrentInputMethod(pInputContext);
#else
qApp->setInputContext(pInputContext);
#endifQt输入法在嵌入式硬件环境,是通过服务器和客户端的方法通讯的。服务器端接收系统的事件,通过输入法的过滤inputMethod,发送消息到客户端(widget),输入法的接入主程序的接口入以上代码所示。
总结工作QT学习相关,以方便以后查阅:
1、关于输入法设计:
#ifdef Q_WS_QWS
QWSServer::setCurrentInputMethod(pInputContext);
#else
qApp->setInputContext(pInputContext);
#endifQt输入法在嵌入式硬件环境,是通过服务器和客户端的方法通讯的。服务器端接收系统的事件,通过输入法的过滤inputMethod,发送消息到客户端(widget),输入法的接入主程序的接口入以上代码所示。