modify:回车默认ok

This commit is contained in:
2026-05-21 15:18:53 +08:00
parent e5d446b3aa
commit a794ea7574
2 changed files with 29 additions and 2 deletions
+2
View File
@@ -28,6 +28,8 @@ public:
protected:
bool eventFilter(QObject *obj, QEvent *event) override;
// 统一处理物理键盘确认键,保证主键盘 Enter 和小键盘 Enter 都等价于点击 OK。
void keyPressEvent(QKeyEvent *event) override;
private slots:
void on_btn_ok_clicked();