37,719
社区成员
发帖
与我相关
我的任务
分享
QLineEdit.keyPressEvent (self, QKeyEvent)
Reimplemented from QWidget.keyPressEvent().
Converts the given key press event into a line edit action.
If Return or Enter is pressed and the current text is valid (or can be made valid by the validator), the signal returnPressed() is emitted.
我以前无意中看到过, linux下的回车键大小键盘有差异, 一个是return_key, 一个是enter_key.
The default key bindings are listed in the class's detailed description.