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

2018-05-11 Thread Thiago Macieira
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 err

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

2018-05-11 Thread alexander golks
Am Fri, 11 May 2018 18:05:11 +0800 schrieb Elvis Stansvik : > Not sure why you bring up this piece of MS docs, when this is about QFile. this is about qfile on windows 7. the implementation is using WriteFile. sources for documentation are in msdn, too. this is, what its about. > It is not sile

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

2018-05-11 Thread Elvis Stansvik
2018-05-11 10:03 GMT+02:00 alexander golks : > Am Thu, 10 May 2018 23:32:14 -0700 > schrieb Thiago Macieira : > >> On Thursday, 10 May 2018 23:11:04 PDT alexander golks wrote: >> > i think it "silently" breaks here without setting error condition on the >> > QFile when hitting errors on all chunks

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

2018-05-11 Thread alexander golks
Am Thu, 10 May 2018 23:32:14 -0700 schrieb Thiago Macieira : > On Thursday, 10 May 2018 23:11:04 PDT alexander golks wrote: > > i think it "silently" breaks here without setting error condition on the > > QFile when hitting errors on all chunks but the first one, thus returning a > > size lower th

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

2018-05-11 Thread Alex Strickland
On 2018/05/11 08:32, Thiago Macieira wrote: It's not an error to not write everything. This reply is Delphic in it's inscrutability :) -- Regards Alex ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/int