[Interest] Deleting the QNetworkAccessManager post(req, iodev) QIODevice?

Thiago Macieira thiago.macieira at intel.com
Wed Mar 2 23:50:14 CET 2016


On quarta-feira, 2 de março de 2016 09:53:46 PST Thiago Macieira wrote:
> On quarta-feira, 2 de março de 2016 17:45:15 PST Jason H wrote:
> > Let me expand on this, I can f->setParent(reply), but I also need to
> > delete
> > the file from disk. If I rely on the parent/child object deletion, I can't
> > get a change to delete the file.
> 
> If you're on Unix, you can delete the file while it's still open. The file
> will disappear from the directory listing immediately and the contents will
> be discarded once the  last open file descriptor closes.

Another idea: why don't you use QTemporaryFile?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list