Results 1 to 9 of 9

Thread: QFileSystemWatcher Question (Qt 4.1.2tp)

  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default QFileSystemWatcher Question (Qt 4.1.2tp)

    I need to observate changes in a directory and have written a class "Monitor" for this purpose which uses gamin/fam to track the occuring changes. I am interested in what files have been added/removed to/from the directory. Using FAMEvent (fam) this is not that hard to find out. You just query the FAMEvent object for its code (event type) and filename attribute and get the necessary information you need. Now that Qt-4.1.2 has a file- and directory monitoring class, I tried to use that instead of my own dirty implementation. But it seems, like all it does is telling you that some changes to the directory have occured at all but not what changes (a file being added or removed ...) have taken places in particular. Are these features yet to be implemented or did I overlook something?

    Thanx in advance
    momesana

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QFileSystemWatcher Question (Qt 4.1.2tp)

    Go send some feedback and we might even have that feature in 4.2..
    How to Provide Feedback
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QFileSystemWatcher Question (Qt 4.1.2tp)

    I reported it to the mailinglist. I hope they will implement it some day soon.

    Thank you

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QFileSystemWatcher Question (Qt 4.1.2tp)

    Quote Originally Posted by momesana
    I reported it to the mailinglist. I hope they will implement it some day soon.
    I think the task tracker is a better place for this.

  5. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QFileSystemWatcher Question (Qt 4.1.2tp)

    Quote Originally Posted by wysota
    I think the task tracker is a better place for this.
    Unfortunately, only customers of trolltech have Task Tracker accounts, making it possible for them to submit Feature Requests etc. At least that's what the Task Tracker FAQ says:

    At the moment, all customers with an active support contract have an account for Task Tracker. For the future we plan to provide an account system that allows anybody to create an account.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QFileSystemWatcher Question (Qt 4.1.2tp)

    Quote Originally Posted by momesana
    Unfortunately, only customers of trolltech have Task Tracker accounts, making it possible for them to submit Feature Requests etc. At least that's what the Task Tracker FAQ says:

    At the moment, all customers with an active support contract have an account for Task Tracker. For the future we plan to provide an account system that allows anybody to create an account.
    You can report a problem without an account, just click on "Open a new task".

  7. #7
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QFileSystemWatcher Question (Qt 4.1.2tp)

    http://www.trolltech.com/customer/task-tracker - requires an account
    http://www.trolltech.com/developer/task-tracker - does not

    A customer account just provides some extra features like voting on a bug and tracking a bug.
    J-P Nurmi

  8. #8
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QFileSystemWatcher Question (Qt 4.1.2tp)

    Thank you for the hint. One final question: How do I suggest a new Feature? When I open a new Task, the form is more or less designed for a bug report. ... Is there a special Feature Request form, or do I have to use the bugreport-form to suggest the new feature?

    Thanx in advnace
    momesana

  9. #9
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QFileSystemWatcher Question (Qt 4.1.2tp)

    Quote Originally Posted by momesana
    Is there a special Feature Request form, or do I have to use the bugreport-form to suggest the new feature?
    Yes, use the same form for bugs and suggestions. The Trolls will then decide whether a new possible task is added as a bug or as a suggestion.
    J-P Nurmi

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.