Results 1 to 3 of 3

Thread: How to get a list of file names in a directory?

  1. #1
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default How to get a list of file names in a directory?

    I'm writing an application using Qt. I want to get a list of names of photos in a folder when the program runs.
    But now I do not know how to do it. Who can help me this problem is not? Thanks a lot!
    __________>positive attitude is the key to success!<_________
    Contact me via the mailbox: sokhanhlovedark@gmail.com

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to get a list of file names in a directory?

    QDir::entryList() or QDir::entryInfoList() depending on your needs.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    khanhsk (8th February 2012)

  4. #3
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: How to get a list of file names in a directory?

    wysota, thanks a lot!
    __________>positive attitude is the key to success!<_________
    Contact me via the mailbox: sokhanhlovedark@gmail.com

Similar Threads

  1. List all XML files in a directory
    By ouekah in forum Newbie
    Replies: 4
    Last Post: 30th August 2015, 08:47
  2. Qt Creator Changing file names in Qt Creator
    By tiredtyrant in forum Qt Tools
    Replies: 1
    Last Post: 19th March 2010, 20:04
  3. Compiling error with caps file names
    By Caius Aérobus in forum Qt Programming
    Replies: 5
    Last Post: 21st October 2008, 15:34
  4. moc with same file names?
    By cjhuitt in forum Qt Programming
    Replies: 9
    Last Post: 27th April 2007, 20:36
  5. Reading a unicode names from a file???
    By darpan in forum Qt Programming
    Replies: 7
    Last Post: 3rd May 2006, 17:28

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.