最近在做 wince 程序。
当用户 点行编辑时 弹出键盘
bool MyInputPanelContext::filterEvent(const QEvent* event)//打开、关闭事件
{
if (event->type() == QEvent::RequestSoftwareInputPanel) {
updatePosition();
inputPanel->show();
return true;
} else if (event->type() == QEvent::CloseSoftwareInputPanel) {
inputPanel->hide();
return true;
}
return false;
}
在windows下 可以弹出 键盘,但在wince 下没反应!
有网友说在嵌入式设备中需要 手动触发QEvent::RequestSoftwareInputPanel!
请问当用户点击行编辑时,如何手动触发QEvent::RequestSoftwareInputPanel?