哪一个版本还真不好说, 我好像记得MurphyPinyin原本是QTopia的, 某人移植到了QtEmbedded上, 我就是拿某人的稍微改了一下而已。 添加软键盘其实很简单, 首先写一个软键盘的界面, 各个键都是个按钮, 鼠标点在按钮上就调用这个函数
void QWSServer::sendKeyEvent ( int unicode, int keycode, Qt::KeyboardModifiers modifiers, bool isPress, bool autoRepeat ) [static]
Sends the given key event. The key is identified by its unicode value and the given keycode, modifiers, isPress and autoRepeat parameters.
Use this function to send key events generated by "virtual keyboards" (note that the processKeyEvent() function is impelemented using this function).
The keycode parameter is the Qt keycode value as defined by the Qt::Key enum. The modifiers is an OR combination of Qt::KeyboardModifier values, indicating whether Shift/Alt/Ctrl keys are pressed. The isPress parameter is true if the event is a key press event and autoRepeat is true if the event is caused by an auto-repeat mechanism and not an actual key press.
Note that this function can only be used in the server process.
See also processKeyEvent() and Qt for Embedded Linux Character Input.
在我这退格键好像没有问题
[ 此帖被zzz945在2010-06-30 20:52重新编辑 ]