Hi,

I am experiencing some difficulties to correctly using validation on a QLineEdit for Hebrew Character Classes.
I have tried using the UTF Range with \u0590-\u05FF or \x0590-\x05FF and scripts like \p{Hebrew} or \p{InHebrew}.
I also guestimated the eating of backslashes so I tried \\ double slash and even an actual slash with \\\\.
At one point, I wondered if I needed to install PCRE support, but then assumed that I don't need to conform with Perl Style validation so I left that subject.
I have set the QRegExpValidator to using the QLocale::Hebrew (and get a proper response: the Israeli country code ).
Whatever I have tried so far doesn't validate any Hebrew characters in a QLineEdit.

I am using KDE/Linux with Hebrew Language support. My default system locale = en-US.
My Qt version is 4.8.0. 32-bit with Creator 2.4.1

Maybe I am missing something, and someone could point me into the correct direction? Below is the validation code that I attempted. I left the RegEx's out, since I mentioned them above.

Qt Code:
  1. QRegExp qrxRegEx( " Dunno what to do here to Validate for Hebrew Characters ");
  2. QValidator* qValLineEdits;
  3.  
  4. qValLineEdits = new QRegExpValidator( qrxRegEx, this );
  5. qValLineEdits->setLocale( QLocale::Hebrew );
  6. QLocale qLocHeb = qValLineEdits->locale();
  7.  
  8. qDebug() << qLocHeb.name() << endl;
  9.  
  10. ui->leBugRepPersInfoName->setValidator( qValLineEdits );
To copy to clipboard, switch view to plain text mode