TorAn
19th March 2013, 19:02
I am looking for a suitable replacement of toAscii(), since it is deprecated in Qt5.
Is
QString str("test");
const char* ptr = (const char*) (str.utf16());
a good substitute for toAscii()?
Advise/comment is appreciated, thanks.
Is
QString str("test");
const char* ptr = (const char*) (str.utf16());
a good substitute for toAscii()?
Advise/comment is appreciated, thanks.