[Interest] Transfering ownership of QByteArray to char*

Konstantin Tokarev annulen at yandex.ru
Mon Aug 20 10:01:59 CEST 2012

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';


More information about the Interest mailing list