Hi jacek,

Qt Code:
  1. #include <QChar>
  2.  
  3. somefunction()
  4. {
  5. ...
  6. QString name = songsmodel->record(songrow).value(2).toString();
  7. int n = name.length();
  8. while (!isDigit(name[n]) && name[n] != '-' && n > 0)
  9. n--;
  10. ..
  11. }
To copy to clipboard, switch view to plain text mode 
Quote Originally Posted by jacek View Post
How did you exactly tried to use QChar::isDigit()?