Results 1 to 4 of 4

Thread: Qt 4.4.3 not able to list directories and files from shared folder.

  1. #1
    Join Date
    Jun 2009
    Location
    Bangalore
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Qt 4.4.3 not able to list directories and files from shared folder.

    I am trying to use QDir::entryList() to list files from a shared folder. Path is :

    “//ComputerName/SharedFolder/Target”

    Qt finds the directory but is not able to list the files inside it. With Qt 3.3.4 code was working perfectly fine. I tried entryInfoList() also but same result.

    entryList in Qt4.4.3 works fine for Local Folders but not for shared folders. Any suggestions for getting it work or any work around ?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.4.3 not able to list directories and files from shared folder.

    Try playing with the filter flags:
    http://doc.qt.nokia.com/latest/qdir.html#Filter-enum
    I would try to pass QDir::System, and if that doesn't work try: QDir::AllEntries | QDir::System
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Jun 2009
    Location
    Bangalore
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.4.3 not able to list directories and files from shared folder.

    Hello,

    Thanks for your help. I tried with Different flags and with QDir::AllEntries | QDir::System also but none of them work. It's really strange, didn’t Nokia Testing team did proper testing ???

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.4.3 not able to list directories and files from shared folder.

    It's really strange, didn’t Nokia Testing team did proper testing ???
    Just because it doesn't work in YOUR CODE it doesn't mean that Qt was not tested properly.
    Qt is one of the tool kit which is better tested, as it is very popular and open source, which mean many people can and do check the internal code.
    And in any software there may be bugs too - did you try the Qt bug tracker to see if there is a bug about this?
    Its hard to say where the problem is with the little information you provided, or without knowing your code.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. QDir, list all directories?
    By hakermania in forum Newbie
    Replies: 10
    Last Post: 1st July 2015, 05:41
  2. Replies: 0
    Last Post: 13th October 2010, 04:27
  3. Replies: 4
    Last Post: 18th August 2010, 04:23
  4. Replies: 3
    Last Post: 25th February 2010, 18:52
  5. QFtp hidden files/folder's list
    By jay in forum Qt Programming
    Replies: 1
    Last Post: 26th December 2008, 12:12

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.