• 4864阅读
  • 3回复

qwsServer->sendKeyEvent( -1, 9,Qt::NoModifier, true, false); [复制链接]

上一主题 下一主题
离线tsuibin
 

只看楼主 倒序阅读 楼主  发表于: 2009-04-03
qwsServer->sendKeyEvent( -1, 9,Qt::NoModifier, true, false);

离线tsuibin

只看该作者 1楼 发表于: 2009-04-03
第一个和第二个参数要怎么设置?
第一个是unicode
第二个是ascii码?
离线benwang
只看该作者 2楼 发表于: 2009-04-06
unicode is the unicode value of the key to send, keycode the Qt keycode (e.g. Key_Left), modifiers indicates whether, Shift/Alt/Ctrl keys are pressed, isPress is TRUE if this is a key down event and FALSE if it's a key up event, and autoRepeat is TRUE if this is an autorepeat event 。
以上Qt文档原文。
You're the best……
离线tsuibin

只看该作者 3楼 发表于: 2009-04-07
这个英文文档没有任何的实际作用,我甚至不知道为什么第二个参数为9。
第二个参数的值还是在看qtcenter论坛的时候看到一个用户例子中的值。
发帖不是因为没有看文档。
快速回复
限100 字节
 
上一个 下一个