Results 1 to 2 of 2

Thread: How to get no. of files and folders in the exixting directory?

  1. #1
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default How to get no. of files and folders in the exixting directory?

    Hi all

    I am working on Qt4.2 on MAC-Intel machine, can anybody tells me that how can i get total no. of files and folders in the existing directory selected using QFileDialog.
    Always Believe in Urself
    Merry

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to get no. of files and folders in the exixting directory?

    Look at QDir's count()

    Qt Code:
    1. uint QDir::count () const
    To copy to clipboard, switch view to plain text mode 
    I'm a rebel in the S.D.G.

  3. The following user says thank you to lyuts for this useful post:

    merry (4th August 2008)

Similar Threads

  1. viewing files or some folders
    By as001622 in forum Qt Programming
    Replies: 4
    Last Post: 2nd June 2008, 13:12
  2. Replies: 42
    Last Post: 30th July 2007, 15:55
  3. How to manage files with different folders for make
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 7th July 2007, 14:44

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.