On quarta-feira, 25 de setembro de 2013 22:31:54, Etienne Sandré-Chardonnal wrote: > In Qt 4.8.1, QTemporaryFile::open(OpenMode flags) is protected. On the > other hand, the documentation says it's public. > > Is this a bug or a documentation error? > > If this is a documentation error, why not allowing to reopen the file in > read mode? Instead, the current implementation forces to create another > QFile on the temporary path for reading the data.
Why do you want to create a new file and only read from it, before writing anything? That doesn't make sense... Let me simplify your data for you: QByteArray data; That will give you as much data as opening a QTemporaryFile in read-only mode. That shows that either you did not explain your problem properly, that you're not understanding how QTemporaryFile works or you're abusing it. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest