qt-interest@trolltech.com
[Top] [All Lists]

Re: Problem with QByteArray

Subject: Re: Problem with QByteArray
From: Adam Majer
Date: Tue, 19 Oct 2004 16:32:47 -0500
John Dean wrote:

> Hi
>
> I don't seem to be able to dump the contents of a QByteArray to a
> file. I have tried using QVariant to first convert to a QString, but
> when I read the data back again extra bytes are added or some bytes
> are changed.


You know that QIODevice is the base class for QFile?

http://doc.trolltech.com/3.3/qiodevice.html

and more specifically,

http://doc.trolltech.com/3.3/qiodevice.html#writeBlock-2
http://doc.trolltech.com/3.3/qiodevice.html#readAll

- Adam

-- 
Building your applications one byte at a time
http://www.galacticasoftware.com

--
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>