Actually Qt Creator also creates a new file when saving (see Utils::SaveFile)

--
Eike Ziller
Principal Software Engineer

Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori

________________________________________
From: [email protected] 
[[email protected]] on behalf of ext 
Konstantin Tokarev [[email protected]]
Sent: Thursday, April 05, 2012 11:12
To: Kandeler Christian (Nokia-MP/Berlin)
Cc: [email protected]
Subject: Re: [Qt-creator] Strange behavior of Utils::FileSystemWatcher

05.04.2012, 12:32, "Christian Kandeler" <[email protected]>:
> 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
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator

Reply via email to