[Qt-interest] Exclusive access while writing QFile
João Abecasis
joao at trolltech.com
Mon Jan 18 14:51:02 CET 2010
Jainish Jain wrote:
> I want to have exclusive access on QFile while writing large amount
> of data so that during transfer (may take 5 min) no one can delete the file
> from its location. Is there any way to have exclusive access on QFile?
The concept of exclusive access is not portable across platforms and it
is not supported in Qt. But, I have to ask, why do you need it?
Would writing to a temporary file (e.g, using QTemporaryFile) in the
same directory as the destination and renaming once transfer is finished
be enough?
Cheers,
João
More information about the Qt-interest-old
mailing list