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

Thiago Macieira thiago.macieira at intel.com
Fri May 11 17:34:09 CEST 2018


On Friday, 11 May 2018 04:08:48 PDT alexander golks wrote:
> > It is not silent, you have the return value so you can detect when the
> > number of written bytes is not equal to the size of the data.
> 
> the error is 0. and errorString() is "no error", too.
> so how to evaluate for error or no error?

No error. It just wrote less than what you supplied.

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






More information about the Interest mailing list