Hi..

In the next code used the validate function:

Qt Code:
  1. if( HX->validator()->validate(HX->text(), p) == QValidator::Acceptable)
  2. {
  3. ...
  4. }
To copy to clipboard, switch view to plain text mode 

When I compile this code mark this error:

error: no matching function for call to `QValidator::validate(QString, int&) const'
note: candidates are: virtual QValidator::State QValidator::validate(QString&, int&) const

Then I need give a QString&, but I don't have a clue...

Please help

I Use Qt4.1