[Interest] QFileSystemWatcher and accesing files in monitored directory...

Rainer Wiesenfarth Rainer_Wiesenfarth at Trimble.com
Mon Aug 31 22:39:19 CEST 2015


From: Igor Mironchik
> [...]
> Even if try to open file in ReadWrite mode it opens successfully...
> [...]
> 
> And sometimes I receive: loading failed and pixmap is null. Reloading of such
> images is successfull...
> 
> I can't reproduce reading of saved on the half image. May be ReadWrite mode
> has fixed the problem... I do not know.

Just another idea:

Do you control the writer side, too? In that case you might write to a temp file and rename/move it to the final place and name once it is complete. This way the reader either will find a complete file or no file at all.

Best regards
Rainer Wiesenfarth



More information about the Interest mailing list