[Development] QFile: writing via a temporary file

Robin Burchell robin+qt at viroteck.net
Fri Jan 6 21:38:19 CET 2012


On Fri, Jan 6, 2012 at 9:38 PM, David Faure <faure at kde.org> wrote:
> It could even add an unnecessary need for casting, I could imagine: a public
> method takes a QFile, then you realize it should handle disk-full situations
> better, so you pass it a QSaveFile and you have to downcast it internally to
> call rollback in case of a truncated write...). This doesn't sound appealing.
> A QFile builtin feature makes this much nicer.

I agree, for what it's worth.



More information about the Development mailing list