[Interest] File change signal is emitted multiple times in QFileSystemWatcher on Mountain Lion (Qt 4.8.2)

Jason H scorp1us at yahoo.com
Tue Jul 31 22:44:34 CEST 2012


This has been brought up before.

I believe it was decided that it was not a bug, that the behavior is whatever the OS services provide. 

From what I can tell you should have 2 signals below, as the file is closed twice.



________________________________
 From: "norulez at me.com" <norulez at me.com>
To: Qt Project MailingList <interest at qt-project.org> 
Sent: Tuesday, July 31, 2012 4:12 PM
Subject: Re: [Interest] File change signal is emitted multiple times in QFileSystemWatcher on Mountain Lion (Qt 4.8.2)
 
I tested this behavior on Windows, Linux and Mac OS X.
It seems that this weird behavior is only on Mac OS X.


Am 30.07.2012 um 21:04 schrieb norulez at me.com:

> Hello,
> 
> I noticed that QFileSystemWatcher is emitting the fileChanged() signal between 3 and 4 times.
> Is this behavior wanted or is this a bug? Does anyone else has this behavior too?
> How can i avoid multiple signals if this behavior is wanted?
> 
> How to reproduce:
> 1.) Create a file ("touch HelloWorld.txt")
> 2.) Open a file ("HelloWorld.txt")
> 3.) Modify the file ("echo "Hello World" >> HelloWorld.txt")
> 4.) The fileChanged() signal is received multiple times
> 
> System: Qt 4.8.2
>              OS X Mountain Lion
> 
> Does anyone know when Mountain Lion is supported? Qt 4.8.3? Qt 5.0?
> 
> Thanks in advance
> 
> Best Regards
> NoRulez
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120731/917e84aa/attachment.html>


More information about the Interest mailing list