I need to get the ASCII code from a QChar
.
In Qt 5.2 QChar::ToAscii
has been removed.
Here is my code. How can I get the ASCII code?
QString data;
int key;
key = data.at(i);
I need to get the ASCII code from a QChar
.
In Qt 5.2 QChar::ToAscii
has been removed.
Here is my code. How can I get the ASCII code?
QString data;
int key;
key = data.at(i);
Copyright © 2021 Jogjafile Inc.
Use:
From the doc:
From a Qt5.0 version
Example
Output: