[Interest] Strange undeletable QTemporaryFile. Is it a bug?

Thiago Macieira thiago.macieira at intel.com
Tue Aug 27 00:43:04 CEST 2013


On segunda-feira, 26 de agosto de 2013 15:36:14, Alex Malyushytskyy wrote:
> But if you do it, it is your problem and responsibility and you do not feel
> frustrated cause the behavior does not meet your expectations.
> QTemporaryFile::close () is not meant to be public. User have no use of it.
> Make it private and this question will not ever rise again.

Technically, it is meant to be public. It closes the QIODevice so you can no 
longer read from it or write to it.

However, the underlying file descriptor or Win32 HANDLE is kept open. That's an 
implementation detail.

-- 
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/20130826/72885f01/attachment.sig>


More information about the Interest mailing list