Results 1 to 4 of 4

Thread: QFileSystemWatcher problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QFileSystemWatcher problem

    "watcher" goes out of scope when the constructor completes, allocate it on the heap or make it a class member.

  2. The following user says thank you to stampede for this useful post:

    YDYD (30th July 2014)

  3. #2
    Join Date
    Jun 2014
    Posts
    33
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QFileSystemWatcher problem

    Hi stampede,

    when i declared
    QFileSystemWatcher *watcher=new QFileSystemWatcher;

    it works,

    but i declared in .h file "private",it is not working.

    "The program has unexpectedly finished."

  4. #3
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QFileSystemWatcher problem

    it is not working
    It is impossible to help without seeing relevant code.

Similar Threads

  1. QFileSystemWatcher Problem
    By Dongxd in forum Qt Programming
    Replies: 2
    Last Post: 10th May 2014, 11:18
  2. Problem with QFileSystemWatcher?
    By arbi in forum Qt Programming
    Replies: 3
    Last Post: 29th March 2012, 07:57
  3. QFileSystemWatcher problem... yes, again..
    By nateriver in forum Qt Programming
    Replies: 0
    Last Post: 31st December 2009, 16:47
  4. QFIleSystemWatcher
    By jayreddy in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2009, 08:21
  5. QFileSystemWatcher problem!!
    By Raajesh in forum Qt Programming
    Replies: 0
    Last Post: 23rd June 2008, 17:46

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.