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