Dear Wysota,
Thanks for the reply.......Actually i have done the validation something like this.........Just look the code phrased below
QRegExp rx
("([A-Za-z][A-Za-z][0-9][0-9][A-Za-z][A-Za-z][0-9]+)/([A-Za-z]+)");
ui->lineEditVehicleNumber->setValidator(validator);
qDebug()<<"The Vehicle number is"<<rx;
QRegExp rx("([A-Za-z][A-Za-z][0-9][0-9][A-Za-z][A-Za-z][0-9]+)/([A-Za-z]+)");
QValidator *validator = new QRegExpValidator(rx, this);
ui->lineEditVehicleNumber->setValidator(validator);
qDebug()<<"The Vehicle number is"<<rx;
To copy to clipboard, switch view to plain text mode
But actually i am getting the format which i wanted to have numbers at last but im not satisfied with the coding that i have done......Can anyone remodify it......Thanks in Advance......Any solution would be appreciable.
Regards,
Bookmarks