PDA

View Full Version : QFileSystemwatcher not working when file added to directory



wagmare
23rd December 2013, 12:31
hi friends,
i was using QFileSystemWatcher and used


connect(theFileWatcher,SIGNAL(fileChanged(QString) ),this,SLOT(updateGallery()),Qt::QueuedConnection) ;
connect(theFileWatcher,SIGNAL(directoryChanged(QSt ring)),this,SLOT(updateGallery()),Qt::QueuedConnec tion);

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 ..