[Development] QFile: writing via a temporary file

Thiago Macieira thiago.macieira at intel.com
Fri Jan 6 01:38:37 CET 2012


On Thursday, 5 de January de 2012 22.48.32, David Faure wrote:
> Solution 2: how about making this functionality part of QFile itself?
> No need to "port to another class" anymore, just enable the safety feature
> by  calling file.setUseTemporaryFile(true).

What happens if you open the file in read or read-write mode while the flag is 
on?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- 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/development/attachments/20120105/928b0223/attachment.sig>


More information about the Development mailing list