Hi Thiago, I said "reopen" in my post but this was not crystal clear.
I do not want to read first, I want to write data, close, then reopen for reading (Used as a buffer for uploading large data over the network and avoid keeping it in memory). Etienne 2013/9/25 Thiago Macieira <thiago.macie...@intel.com> > 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 > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest