From 5af6a039c2b23097b12e03750dbbfc93409469e6 Mon Sep 17 00:00:00 2001 From: tangchao0503 <735056338@qq.com> Date: Thu, 27 Feb 2025 14:18:02 +0800 Subject: [PATCH] =?UTF-8?q?x=E9=A9=AC=E8=BE=BE=E6=89=AB=E6=8F=8F=E9=80=9F?= =?UTF-8?q?=E5=BA=A6=E6=8E=A5=E5=8F=97=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HPPA/HPPA.cpp | 3 ++- HPPA/about.ui | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/HPPA/HPPA.cpp b/HPPA/HPPA.cpp index def4d20..962c93d 100644 --- a/HPPA/HPPA.cpp +++ b/HPPA/HPPA.cpp @@ -178,7 +178,8 @@ HPPA::HPPA(QWidget *parent) connect(this->ui.ymotor_backward_btn, SIGNAL(released()), this, SLOT(onyMotorStop())); //ËÙ¶È - QRegExp rx("\\d{0,3}[1-9]$"); + //QRegExp rx("\\d{0,3}.[1-9]$"); + QRegExp rx("^\\d+(\\.\\d+)?$"); ui.xmotor_speed_lineEdit->setValidator(new QRegExpValidator(rx)); //¶ÁÈ¡ÅäÖÃÎļþ diff --git a/HPPA/about.ui b/HPPA/about.ui index b1d6f75..3b179a9 100644 --- a/HPPA/about.ui +++ b/HPPA/about.ui @@ -9,7 +9,7 @@ 0 0 - 756 + 523 463 @@ -25,7 +25,7 @@ 90 250 - 578 + 341 134 @@ -70,7 +70,7 @@ - 版本:1.8.4 + 版本:1.8.5