Hi All,
I have written an program to read a file and parse it for my data and display in an table.
Now I want it to read the file continuously for any changes i the file and do live update in the table.
How I can achieve this ?
Thanks,
Snaidy
Hi All,
I have written an program to read a file and parse it for my data and display in an table.
Now I want it to read the file continuously for any changes i the file and do live update in the table.
How I can achieve this ?
Thanks,
Snaidy
Use QFileSystemWatcher to monitor the file for changes. Connect a slot in your parsing class to the QFileSystemWatcher::fileChanged() signal. When that signal is emitted, re-read and parse the file to update your table.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks