[Qt-interest] QFileSystemWatcher Question

Andreas Pakulat apaku at gmx.de
Thu Aug 13 08:42:24 CEST 2009


On 12.08.09 23:08:13, Dave Gerlach wrote:
> When you add a path to QFileSystemWatcher and then modify a file that is 
> in the directory being watched, does the directoryChanged() signal fire? 
> I thought it did in a past project I worked on but now it seems this is 
> not so. Adding, renaming, and deleting files at the path causes the 
> signal to fire but actually changing the contents of the file does not. 
> Any thoughts on this?

If this did happen in the past, then it was a bug. Changing the contents
of a file doesn't touch the parent directory in any way, hence sending
our a directory-changed signal would be wrong. 

Andreas

-- 
You will pioneer the first Martian colony.



More information about the Qt-interest-old mailing list