[Interest] QFileSystemWatcher

Koehne Kai Kai.Koehne at digia.com
Tue Apr 1 12:24:18 CEST 2014


(bringing this back to interest@ ...)

> -----Original Message-----
> From: sarah jones [mailto:qtsarah at outlook.com]
> Sent: Tuesday, April 01, 2014 12:13 PM
> To: Koehne Kai
> Subject: RE: [Interest] QFileSystemWatcher
> 
> Hi
> I am using Qt5.2.1 on Windows 7
> I think that the problem may lie in how I am testing this.
> I have a separate program that copies files from one folder to another 
> (executed in a thread) If I replace this program with a simple batch 
> file things seem to be improved.
> But i don't know how or why - is there some kind of interaction 
> between the test program and the FileSystemWatcher Confused

One theory: Your application gets so many QFileSystemWatcher events that the event loop saturates. 

Robin Burchell blogged about QFileSystemWatcher changes in Qt 5, and mentions (one variant of) this problem as solved, but later on mentions on Windows it still uses threads:

http://blog.rburchell.com/2012/01/qfilesystemwatcher-internals-in-qt-5.html

Regards

Kai




More information about the Interest mailing list