[Qt-creator] Strange behavior of Utils::FileSystemWatcher
Christian Kandeler
christian.kandeler at nokia.com
Thu Apr 5 10:32:44 CEST 2012
On 04/04/12 16:14, ext Konstantin Tokarev wrote:
> I was using QFileSystemWatcher in my plugin, but than discovered Utils::FileSystemWatcher.
>
> "Constructing/Destructing a QFileSystemWatcher is expensive. This can be worked around
> by using a centralized watcher..."
>
> So I've decided I should use it instead of QFileSystemWatcher for the great justice. However,
> when I switched I've discovered very strange behavior: I get signal fileChanged for certain
> file only once.
Are you by any chance editing the files outside QtCreator with an editor
such as emacs that actually creates a new file when saving? AFAIK, QFSW
is not able to detect that the underlying inode has changed.
Christian
More information about the Qt-creator
mailing list