QRegExp double_rx("^-?(([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5])|^0)$");
QRegExp double_rx("^-?(([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5])|^0)$"); QRegExpValidator *pReg = new QRegExpValidator(double_rx, this); pLinedit->setValidator(pReg);
还没有评论,来说两句吧...