Results 1 to 5 of 5

Thread: QFileSystemWatcher empty QStringList file()

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QFileSystemWatcher empty QStringList file()

    You are not watching any files, only the directory "data/Tests/".

    Cheers,
    _

  2. #2
    Join Date
    Jan 2014
    Posts
    7
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Windows

    Default Re: QFileSystemWatcher empty QStringList file()

    Could you give me more info? My files are in "data/Tests/" directory. I only need to read their names.
    Thanks to replay me

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QFileSystemWatcher empty QStringList file()

    Quote Originally Posted by Carmengg View Post
    Could you give me more info?
    The file system watcher can be told to watch files and directories. You are only watching a directory, thus files() returns an empty list.

    Quote Originally Posted by Carmengg View Post
    My files are in "data/Tests/" directory. I only need to read their names.
    Maybe you are looking for QDir::entryList)()?

    Cheers,
    _

  4. #4
    Join Date
    Jan 2014
    Posts
    7
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Windows

    Default Re: QFileSystemWatcher empty QStringList file()

    Thank you soooo much. That works

Similar Threads

  1. Replies: 0
    Last Post: 23rd December 2013, 12:31
  2. qstringlist output to file
    By martial_arts_drummer in forum Qt Programming
    Replies: 9
    Last Post: 27th February 2011, 21:05
  3. Replies: 4
    Last Post: 3rd August 2010, 07:17
  4. Replies: 3
    Last Post: 21st August 2009, 11:39
  5. Qhttp get in qt3 to file? file is empty until app is close?
    By triperzonak in forum Qt Programming
    Replies: 1
    Last Post: 20th September 2008, 15:54

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.