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

alexander golks alex at golks.de
Mon May 14 08:02:56 CEST 2018


Am Fri, 11 May 2018 08:34:09 -0700
schrieb Thiago Macieira <thiago.macieira at intel.com>:

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

ok, i can live with that.
still this makes QFile unusable with QDataStream, doesn't it?
isn't the documentation for QIODevice::writeData not correct then?

-- 
/*
 *printk(KERN_ERR "Danger Will Robinson: failed to re-trigger IRQ%d\n", irq);
 *        linux-2.6.6/arch/arm/common/sa1111.c
 */



More information about the Interest mailing list