I have read a string in from an XML file with UTF8 encoding. I store this value in a QString
object and concatenate it with some other information. I can see in the QtCreator debugger that the QString
holds the desired value.
I need to pass this string to another library that takes a const char *
argument. How do I obtain the const char *
please? I've tried toLocal8bit()
, toLatin1()
, toUtf8()
all with no luck. Seems like I am missing something...