StupidBeauty
Read times:329Posted at:Wed Oct 26 04:11:17 2011
- no title specified

Wt3.1.9文档翻译:Wt::WInteractWidget类参考,Wt::WInteractWidget Class Reference

成员函数文档

EventSignal & Wt::WInteractWidget::enterPressed

(

)

当回车键被按下时所发射的事件信号。

当Enter(回车键)或Return(小键盘回车键)被按下时,会发射这个信号。

表单部件(比如WLineEdit)在拥有焦点时会接收键盘事件。其它部件如果包含(直接或间接)一个拥有焦点的表单部件的话,也会接收键盘事件。

在没有任何部件拥有焦点的情况下,要想捕获回车键,就要使用WApplication::globalEnterPressed()

参考:

keyPressed(), Key_Enter

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4