Results 1 to 4 of 4

Thread: dir entries enumerate problem

  1. #1
    Join Date
    Jun 2008
    Posts
    35
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default dir entries enumerate problem

    QDirIterator does not find directories with dot as prefix: ".config" in linux. Tried to change flags, but no success.

    Thanks

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: dir entries enumerate problem

    Instead of directly creating QDirIterator object try creating a QDir object first with your path and then using QDir object create a QDirIterator object to iterate.

  3. #3
    Join Date
    Jun 2008
    Posts
    35
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: dir entries enumerate problem

    I tried this. Entries with dot prefixed are not found.

  4. #4
    Join Date
    Jun 2008
    Posts
    35
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: dir entries enumerate problem

    It worked fine with flags:
    QDir::Files|QDir::AllDirs|QDir::Hidden|QDir::Syste m

Similar Threads

  1. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  2. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 08:47
  3. problem with menu entries for mdi windows
    By y.shan in forum Qt Programming
    Replies: 3
    Last Post: 18th September 2007, 07:48
  4. Replies: 16
    Last Post: 7th March 2006, 15:57

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.