How to convert every character of a QString string to ASCII ?
1 answer
Most likely, you are looking for qPrintable .
If you do not want to use ready-made, you can write this: str.toLocal8Bit().constData() .
|
Most likely, you are looking for qPrintable .
If you do not want to use ready-made, you can write this: str.toLocal8Bit().constData() .
Source: https://ru.stackoverflow.com/questions/602498/
All Articles