On Aug 20, 2012, at 10:01 AM, ext Konstantin Tokarev <annu...@yandex.ru> wrote:

> Hi all,
> 
> Is there a safe way to get char * from QByteArray which is not destroyed when 
> original QByteArray is destroyed?

Only one: Create a copy ;-)

Cheers,
Lars

> 
> I'm thinking about something like
> 
> QByteArray ba = ...;
> char *data = ba.data();
> ba.data() = '\0';
> 
> 
> -- 
> Regards,
> Konstantin
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to