"watcher" goes out of scope when the constructor completes, allocate it on the heap or make it a class member.
"watcher" goes out of scope when the constructor completes, allocate it on the heap or make it a class member.
YDYD (30th July 2014)
Hi stampede,
when i declared
QFileSystemWatcher *watcher=new QFileSystemWatcher;
it works,
but i declared in .h file "private",it is not working.
"The program has unexpectedly finished."
It is impossible to help without seeing relevant code.it is not working
Bookmarks