QRegExp rx6( "[0-9]{1,1}[,]{1,1}[0-9]{4,4}" ); QValidator* v6 = new QRegExpValidator( rx6,this ); QLineEdit *L=QLineEdit( this, "lineEdit0001" ); L->setValidator(v6);
QLineEdit *L=QLineEdit( this, "lineEdit0001" ); QRegExp rx6( "[0-9]{1,1}[,]{1,1}[0-9]{4,4}" ); QValidator* v6 = new QRegExpValidator( rx6,L ); L->setValidator(v6);