Hi, I m new to QT and learning it (version 4). I am trying to get ASCII of each character present in QString.
int asciiVal;
QString name
=ui
->lineEdit
->text
();
for(int i=0; i <= name.length(); i++)
{
// Get ASCII VALUE into asciiVal
}
// SHow into another lineEdit
ui->lineEdit2->setText(asciiVal);
int asciiVal;
QString name =ui->lineEdit->text();
for(int i=0; i <= name.length(); i++)
{
// Get ASCII VALUE into asciiVal
}
// SHow into another lineEdit
ui->lineEdit2->setText(asciiVal);
To copy to clipboard, switch view to plain text mode
Bookmarks