Nope, that is not correct.
QString::data() doesn't return what you think it returns.
Use this instead:
Qt Code:
ucTest = (unsigned char *) str.toAscii().data();To copy to clipboard, switch view to plain text mode
Nope, that is not correct.
QString::data() doesn't return what you think it returns.
Use this instead:
Qt Code:
ucTest = (unsigned char *) str.toAscii().data();To copy to clipboard, switch view to plain text mode
Bookmarks