According to the Qt 4.8 source code on Gitorious, closing QTemporaryFile just sets the read-write pointer to the beginning of the file and [re]opening it enforces QIODevice::ReadWrite mode (line 82 of "src/corelib/io/qtemporaryfile.h" and line 318 of "src/corelib/io/qtemporaryfile.cpp") which doesn't truncate the file.
On 09/26/2013 05:39 AM, Thiago Macieira wrote: > In any case, every time you open a QTemporaryFile, you get a blank file. > There > is no data on the file, so it makes no sense to open it in read-only mode.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest