[Interest] QFileSystemWatcher malfunctioning

Bo Thorsen bo at fioniasoftware.dk
Thu Feb 2 14:36:35 CET 2012


Den 02-02-2012 14:29, Andreas Pakulat skrev:
> On 02.02.12 14:19:25, Sujan Dasmahapatra wrote:
>> But after updating I am still getting the message that the file is
>> updated. The signal is not blocked. Please tell me whats going wrong in
>> this. Thanks in advance for your help.
>
> Most probably the watcher notices the change asynchronously, i.e. after
> your function has ended and the signal blocker has been deleted. You
> should be able to verify that either using a debugger or by printing
> some timestamps to see when the function is exited and when the slot
> connected to the signal is received

That is a bit surprising to me, since I actually used it exactly for 
blocking a file watcher, and that worked fine. Perhaps a flush is 
necessary on the stream.

Bo Thorsen,
Fionia Software.

-- 

Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk



More information about the Interest mailing list