Unsolved How check status of files in a single directory?
-
Hi,
I never use Qt before it. My main aim is to create a widget that shows the status of files (created, deleted or edited), notifying the change of them every three seconds, in a default directory.
Someone could help me? I have no idea how start it. -
@Ballaz995
Instead of polling every 3 seconds you could use QFileSystemWatcher on a specified path.
Then you will get a fileChanged signal from it.The passed filePath parameter then can be inspected using QFileInfo (see it's birthTime(), lastModified(), etc. methods)
-
@Ballaz995
You should follow @raven-worx 's suggestion, unless the directory of your files can be on a network rather than local? -
@JonB my directory is local
@raven-worx thx, now i will try it.I'm new user and can t replay to two message