[Interest] Converting QStrings to const char *

Doogster thedoogster at gmail.com
Tue Jul 21 18:58:54 CEST 2020


My program uses both Qt and a C API that takes, as parameters, UTF-8
const char * strings.

Is this the correct way to convert a QString containing a UTF8 string
to that format?

qString.toUtf8().constData()


More information about the Interest mailing list