ui->lineEdit->setValidator(new QDoubleValidator(0,100,2,ui->lineEdit));. 他都只能限定最低位,和小数位,不能限定最高位,. 如下图所示:.
確定! 回上一頁