摘要: 为行编辑器限制规则: 1 QRegExp regExp("[A-Za-z][1-9][0-9]{0,2}"); 2 lineEdit->setValidator(new QRegExpValidator(regExp, this)); QT提供了三个内置检验器:QIntValidataor,QDou 阅读全文
posted @ 2015-12-29 09:56 会飞的鱼鱼鱼 阅读(140) 评论(0) 推荐(0)