Results 1 to 4 of 4

Thread: Constantly Update QFile read

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2014
    Posts
    12
    Thanks
    4

    Default Re: Constantly Update QFile read

    Quote Originally Posted by myta212 View Post
    Hi,
    Are you mean created a program to watch your file and update the Qt Program when that file modified ?
    If yes, I think you can use " QFileSystemWatcher "
    Hope this class will solve your problem.

    Best regards,

    myta
    Thank you will check it.

    EDIT
    It seems that QFileSystemWatcher is used to monotorize files on folders (directories). What I want is monotorize if there are changes inside the file, in this case a text file.
    Last edited by digimonkey; 4th November 2014 at 09:00.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Constantly Update QFile read

    From QFileSystemWatcher doc : The fileChanged() signal is emitted when a file has been modified, renamed or removed from disk

  3. The following user says thank you to Lesiok for this useful post:

    digimonkey (4th November 2014)

Similar Threads

  1. Read TXT file with QFile
    By puneet in forum Qt Programming
    Replies: 4
    Last Post: 8th April 2014, 13:34
  2. Replies: 3
    Last Post: 3rd May 2013, 20:27
  3. qfile read from last position
    By NathiyaAmose in forum Qt Programming
    Replies: 4
    Last Post: 23rd July 2012, 10:21
  4. QFile::read failing on XP SP3
    By drescherjm in forum Qt Programming
    Replies: 7
    Last Post: 15th April 2009, 21:59
  5. QFile can't read a file
    By Raccoon29 in forum Qt Programming
    Replies: 3
    Last Post: 11th February 2009, 20:24

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
  •  
Qt is a trademark of The Qt Company.