Results 1 to 2 of 2

Thread: Continous read of the File

  1. #1
    Join Date
    Aug 2016
    Posts
    2
    Qt products
    Qt5 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows Android

    Default Continous read of the File

    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

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Continous read of the File

    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.

Similar Threads

  1. Replies: 6
    Last Post: 24th August 2015, 06:25
  2. Replies: 8
    Last Post: 5th July 2011, 07:32
  3. Read contents from the file using QHTTP Read()?
    By Gokulnathvc in forum Newbie
    Replies: 2
    Last Post: 21st June 2011, 08:03
  4. Display continous images on the screen
    By tuent in forum Newbie
    Replies: 11
    Last Post: 29th December 2010, 10:46
  5. is qt phonon can read realmedia file and divx file
    By fayssalqt in forum Qt Programming
    Replies: 1
    Last Post: 27th January 2009, 15:42

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.