|
|
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/
|
|