[Interest] QFileSystemWatcher malfunctioning
Sujan Dasmahapatra
sujan.dasmahapatra at gmail.com
Thu Feb 2 15:49:05 CET 2012
May Thorson you're right, I'll do a flush on the stream and see. Also I'll
follow Andreas suggestion check it by debugging. It should work. Thanks for
your valuable suggestions. Thanks Sujan
On Thu, Feb 2, 2012 at 8:05 PM, Andreas Pakulat <apaku at gmx.de> wrote:
> On 02.02.12 14:36:35, Bo Thorsen wrote:
> > 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.
>
> Well, it depends on how the Filewatcher does the watching, which depends
> on what the OS provides for watching files and wether its
> enabled/disabled. QFSWatcher uses a Polling-Backend in case it cannot
> use some native notification system and that one surely is asynchronous.
>
> Andreas
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
--
Thanks & Regards
Sujan Dasmahapatra
B.E. (Aeronautics)
Bangalore, India
Ph:91-9900839788
mail id : sujan.dasmahapatra at gmail.com
yahoo msn : dasmahapatra.aerodynamics at yahoo.co.in
icq # 556023244
skype:sujan.dasmahapatra at skyepe.com
msn: sujan.dasmahapatra at hotmail.com
public profile : http://in.linkedin.com/pub/sujan-dasmahapatra/17/269/aa6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120202/1058416c/attachment.html>
More information about the Interest
mailing list