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

2018-05-09 Thread Thiago Macieira
On quarta-feira, 9 de maio de 2018 02:09:23 PDT alexander golks wrote: > i always thought, QFile::write(const QByteArray&) is meant to write all > data. Yes, but it also returns a qint64 that is the number of bytes written. What did it return in your case? -- Thiago Macieira - thiago.macieira (

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

2018-05-09 Thread Steffen Imhof
Hi Alexander, On 5/9/2018 11:09 AM, alexander golks wrote: hi, i recently stumbled over this situation, running on windows 7 using qt-5.6.3. when trying to write ~50MB of data, write does not always complete, the file does not contain all data, yet no error is returned. i always thought, QFil

Re: [Interest] QMetaMethod::invoke / Q_ARG with a temporary

2018-05-09 Thread Sze Howe Koh
On 8 May 2018 at 04:12, Giuseppe D'Angelo wrote: > Il 07/05/2018 20:24, Christian Ehrlicher ha scritto: >> >> I did not found a hint int the documentation about this behavior. >> Therefore my question - should this work for a queued connection or not? >> At least msvc2017 and gcc 4.8 don't like it

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

2018-05-09 Thread alexander golks
yes. i am sure. was another hard time to learn this ;) Am Wed, 9 May 2018 11:57:08 +0200 schrieb Helmut Mülner : > Are you sure your QByteArray has the correct size? > If your constructed it from a const char* and did not give the size, it may > contain only data up to the first zero byte. > > h

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

2018-05-09 Thread Helmut Mülner
Are you sure your QByteArray has the correct size? If your constructed it from a const char* and did not give the size, it may contain only data up to the first zero byte. helmut -Ursprüngliche Nachricht- Von: Interest [mailto:interest-bounces+helmut.muelner=gmail@qt-project.org] Im A

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

2018-05-09 Thread alexander golks
Am Wed, 09 May 2018 09:24:58 + schrieb Vadim Peretokin : yes, i tried flushing the file, too. but this changed nothing. i now have same do while loop as in qint64 QFSFileEnginePrivate::nativeWrite(const char *data, qint64 len) and this works. this writes complete file. but i think, QFile i

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

2018-05-09 Thread Vadim Peretokin
Obvious question but do you flush? On Wed, May 9, 2018 at 11:09 AM alexander golks wrote: > hi, > > i recently stumbled over this situation, running on windows 7 using > qt-5.6.3. > when trying to write ~50MB of data, write does not always complete, the > file does not contain all data, > yet no

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

2018-05-09 Thread alexander golks
hi, i recently stumbled over this situation, running on windows 7 using qt-5.6.3. when trying to write ~50MB of data, write does not always complete, the file does not contain all data, yet no error is returned. i always thought, QFile::write(const QByteArray&) is meant to write all data. as sta