代码 #include <qvalidator.h> ui->HydrophoneCollectTime->setValidator(new QIntValidator(0, 9, this)); order3.SL = ui