[Qt-creator] Strange behavior of Utils::FileSystemWatcher
Konstantin Tokarev
annulen at yandex.ru
Thu Apr 5 11:12:02 CEST 2012
05.04.2012, 12:32, "Christian Kandeler" <christian.kandeler at nokia.com>:
> 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.
No, I modify file inside QtCreator.
--
Regards,
Konstantin
More information about the Qt-creator
mailing list