Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Mac QFileSystemWatcher
Forum Update on Monday, May 27th 2025

Qt Mac QFileSystemWatcher

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Ketan Shah
    wrote on 24 Sept 2011, 10:28 last edited by
    #1

    Hi, I am building a Qt application on MAC OS 10.6.2 using Qt-4.7.
    In my application I am using QFileSystemWatcher.
    I am keeping a watch on three files, whenever a file is edited or removed, the application displays a file change message, but the very next time when I make some changes in the file, application does not notify about modifications(watcher does not keep watch on the files from 2nd time onwards).Below is my code,

    @
    void startwatch()
    {
    QFileSystemWatcher *wtch = new QFileSystemWatcher;
    wtch->addPath("/Applications/myapp/file1.txt");
    wtch->addPath("/Applications/myapp/file2.txt");
    wtch->addPath("/Applications/myapp/file3.txt");

    connect(wtch,SIGNAL(fileChanged(QString)),this,SLOT(fileschange(QString)));

    }@

    what should I do to make the wtch object keep sensing the respective files continuously, what would be the solution for this?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on 24 Sept 2011, 13:39 last edited by
      #2

      Do you have a testcase? It's likely to be a bug.

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Ketan Shah
        wrote on 24 Sept 2011, 14:53 last edited by
        #3

        No. I dont have any testcases.
        So whats the solution for this problem?
        Is there any other way to keep a watch on the files on MAC?

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hugopl
          wrote on 25 Oct 2011, 16:50 last edited by
          #4

          Hi,

          File a bug on bugs.pyside.org, it's the better way to have feedback about strange PySIde behaviors.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved