[Interest] QTemporaryFile::open(OpenMode flags) is protected, but not in documentation
Thiago Macieira
thiago.macieira at intel.com
Wed Sep 25 22:49:30 CEST 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130925/ce582b42/attachment.sig>
More information about the Interest
mailing list