QFileSystemWatcher on linux
Hello,
I have a problem with QFileSystemWatcher on Linux (Debian - kernel 2.6.32-5-amd64, Qt: 4.7.3 ).
The problem is that after signal fileChanged(QString) is emited path, to the file that was changed, is automatically removed without my ingerention. This didn't happened on Win.
Am I missing here something obvious or this is standard behavior or bug?
Re: QFileSystemWatcher on linux
Hello Talei, I don't seem to get where 'is automatically removed' refers to. Does it refer to the file?
Re: QFileSystemWatcher on linux
Situation is as fallow:
1. QFileSystemWatcher addPath( "some file path" ) addPath( "some directory path" )
2. file is edited signal is emited
3. in slot, connected to the signal, QFileSystemWatcher clears file list (not directory list)
qDebgu() output in slots
Code:
Adding path to
QFileSystemWatcher files
: ("/home/userName/test.txt") directories
: ("/home/userName/")
in
slot directoryChangedSlot
(QString dir
) files
(): ("/home/userName/test.txt") directories
: ("/home/userName/") in
slot fileChangedSlot
(QString file) files
(): () directories
: ("/home/userName/") in
slot directoryChangedSlot
(QString dir
) files
(): () directories
: ("/home/userName/")
QFileSystemWatcher clears files() list after emits signal fileChanged(QString), but don't remove directories!
And ofcourse I don't use anywhere removePath()! test app uses only qDebug() and adPath().
Question is why?
Compiled with Qt 4.8.0 RC.