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

Thiago Macieira thiago.macieira at intel.com
Mon Aug 31 22:37:34 CEST 2015


On Monday 31 August 2015 13:36:44 Thiago Macieira wrote:
> On Monday 31 August 2015 22:35:12 Igor Mironchik wrote:
> > How can I be sure that image loaded completely?
> 
> Monitor the file for changes and open it only when it has settled (one
> second after the last write).

Unless you have access to the process that is doing the writing. If you do, 
shoot it for writing directly to the target file. Instead, make it use 
QSaveFile.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list