How to convert every character of a QString string to ASCII ?

    1 answer 1

    Most likely, you are looking for qPrintable .

    If you do not want to use ready-made, you can write this: str.toLocal8Bit().constData() .