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: "noru...@me.com" <noru...@me.com>
To: Qt Project MailingList <interest@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 noru...@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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest