Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Searching in directories

Searching in directories

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ahmed kato
    wrote on last edited by
    #1

    i have a big problem here and i really need help....i have a megastorage of 6TB where there is some folders and subfolders that include files...and i need to make an application that search in this directory for the files ...the user could search using date and using names also every file has a creator name...the searcher could use this name to search for all the files by the creator...also the user could specify two dates and the app should show him all the files between this two dates...so i need some method to set informations to all files so i could specify the creator also how could i search in directory and subdirectories using date of creation or the information that i made for the file??...i know its very big project but i need to know the methods i can use =) thx

    Ahmed Kato
    Computer & communications student
    Intern and MSP at Microsoft

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #2

      Try look to [[Doc:QFileInfo]] class.
      Also I recommend you look to [[Doc:QDirModel]] and [[Doc:QFileSystemModel]] classes.

      --
      Vasiliy

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Max13
        wrote on last edited by
        #3

        Hi,

        You should look at "QDir".
        http://doc.qt.nokia.com/latest/qdir.html

        And try try try many things.
        But I'm sure, you will find everything in this class.

        Good luck.

        Cheers

        We all have started by asking questions. Then after some time, we can begin answering them.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Max13
          wrote on last edited by
          #4

          [quote author="Vass" date="1318337511"]Try look to [[Doc:QFileInfo]] class.
          Also I recommend you look to [[Doc:QDirModel]] and [[Doc:QFileSystemModel]] classes.[/quote]

          Oh... I've posted mine without refreshing :/

          You can use both. Qdir to list, QFileInfo to get the... File info ;)

          We all have started by asking questions. Then after some time, we can begin answering them.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved