Hi, I m new to QT and learning it (version 4). I am trying to get ASCII of each character present in QString.

Qt Code:
  1. int asciiVal;
  2. QString name =ui->lineEdit->text();
  3. for(int i=0; i <= name.length(); i++)
  4. {
  5. // Get ASCII VALUE into asciiVal
  6. }
  7.  
  8. // SHow into another lineEdit
  9. ui->lineEdit2->setText(asciiVal);
To copy to clipboard, switch view to plain text mode