Results 1 to 4 of 4

Thread: QDir entryList performing slowly

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default QDir entryList performing slowly

    Hey trolls,

    I want to retrieve every file name in a directory.

    I'm doing this:
    Qt Code:
    1. dir.entryList(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot);
    To copy to clipboard, switch view to plain text mode 

    And guess what... When you have 10000+ files in a directory It's very slow.

    Is it possible to retrieve files by chunk, like 100 by 100 or something ?

    Thanks.
    Last edited by bunjee; 4th October 2009 at 17:57.

Similar Threads

  1. qdir and entrylist
    By mattia in forum Newbie
    Replies: 1
    Last Post: 28th November 2007, 10:13

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.