qregexpvalidator doesn't work in Android
Mobile and Embedded
7
Posts
2
Posters
2.0k
Views
2
Watching
-
wrote on 11 May 2015, 13:10 last edited by Buleron 5 Nov 2015, 13:10
QRegExpValidator* validator = new QRegExpValidator(QRegExp("[A-a-Z-z][A-a-Z-z]\\d{0,2}\\d[0-9-A-a-Z-z][A-a-Z-z]"));
ui->lineEdit->setValidator(validator);it wokrs in windows but not in android
-
Hi,
Did you try with QRegularExpressionValidator ?
-
What exactly doesn't work ?
-
wrote on 13 May 2015, 06:42 last edited by Buleron
this work correctly in windows , but when i deploy in android it doesnt
ui->lineEdit->setMaxLength(7);
QRegularExpressionValidator* valid = new QRegularExpressionValidator(QRegularExpression("[A-a-Z-z][A-a-Z-z]\\d{0,2}\\d[0-9-A-a-Z-z][A-a-Z-z]"));
ui->lineEdit->setValidator(valid); -
Can you please describe precisely what doesn't work ? Is the input blocked ? Not validated ? etc.
-
wrote on 18 May 2015, 09:40 last edited by
yes the input isn't blocked , it not validated!
1/7