[Qt-interest] QString from char array
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Wed Jan 21 23:11:23 CET 2009
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of RZ
> Sent: Wednesday, January 21, 2009 2:09 PM
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] QString from char array
>
>
> > Have you a null terminating character at the end '\0' at the end of
the
> > array?
>
> No - should I ?!?!
>
Yep...
Otherwise how would it know when to end?
That said, depeding on how you are reading in the data, why not use
QByteArray?
Scott
More information about the Qt-interest-old
mailing list