Hi!
I need a regexp which accepts a string (maximum 30 characters/Slots) with:
- letters from A to Z (not à or Ñ or Ë...)
- numbers
- spaces
- signs: . , -
No matter the order so valid examples are :
- Hello how are you
- Hi. My -name- is ... mm
I was trying with that but it just accepts letters and numbers:
myLineEdit->setValidator(validator7);
QRegExp rx7("[A-Z0-9]{0,30}");
QValidator *validator7 = new QRegExpValidator(rx7, this);
myLineEdit->setValidator(validator7);
To copy to clipboard, switch view to plain text mode
Thank you so much
Bookmarks