
Originally Posted by
manjunath369
Hello,
I am new to QT programming. I am using QFileWatcher in my application and it working fine, but problem is I am getting notifications for all the files and directories including Hidden files and directoris. Is there any way to avoid notifications for hidden files in the phone...?
please can any one help me .....
regards,
Manju
Do you mean QFileSystemWatcher? To avoid actions on hidden files in the slot attached to fileChanged signal
you can use the following code:
Code:
QFileInfo info(fileName);
if (info.isHidden())
return;