QFileSystemwatcher not working when file added to directory
hi friends,
i was using QFileSystemWatcher and used
Code:
connect(theFileWatcher,
SIGNAL(fileChanged
(QString)),
this,
SLOT(updateGallery
()),Qt
::QueuedConnection);
connect(theFileWatcher,
SIGNAL(directoryChanged
(QString)),
this,
SLOT(updateGallery
()),Qt
::QueuedConnection);
now the updateGallery() is been called only if i remove any file from the directory and not when i added any files to the directory ..
this was working earlier fine but it happened suddenly. did anyone faced this problem before ..?
im running itin windows 7
please help me ..