Do it with QString::toAscii().constData().
It returns a preallocated (const char *) and it is frequently used for these situations.
Qt Code:
char *sequence = string.toAscii().constData();To copy to clipboard, switch view to plain text mode
Regards
Bookmarks