Hi all, Is there a safe way to get char * from QByteArray which is not destroyed when original QByteArray is destroyed? I'm thinking about something like QByteArray ba = ...; char *data = ba.data(); ba.data() = '\0'; -- Regards, Konstantin