QIntValidator *intValidator = new QIntValidator; intValidator->setRange(1, 10); ui.lineEdit->setValidator(intValidator);.
確定! 回上一頁