[Interest] QFile::write(const QByteArray&) does not write all data?

Thiago Macieira thiago.macieira at intel.com
Mon May 14 08:08:29 CEST 2018


On Sunday, 13 May 2018 23:02:56 PDT alexander golks wrote:
> still this makes QFile unusable with QDataStream, doesn't it?
> isn't the documentation for QIODevice::writeData not correct then?

No more so than any other QIODevice. If QFile fails to write for some reason, 
then QDataStream can't recover. The only difference is that QFile does not 
have an unlimited buffer, like QAbstractSocket does.

In fact, QDataStream can't recover from any errors.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center






More information about the Interest mailing list