Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Reading the content of a directory

Reading the content of a directory

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 2.0k 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.
  • S Offline
    S Offline
    spode
    wrote on last edited by
    #1

    How to write the content of a directory, the files and other directories?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      Double post.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgeyer
        wrote on last edited by
        #3

        You already have taken a look at the "FolderListModel example":http://doc.qt.nokia.com/4.7/src-imports-folderlistmodel.html, haven't you?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          spode
          wrote on last edited by
          #4

          Nono i mean: how to put in a qstringlist all the files and folders contained in a folder.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lgeyer
            wrote on last edited by
            #5

            So you want to have a QStringList with the contents of a directory - what does this have to do with QML? If you are planning to expose this list to QML just to access the directory listing go for the FolderListModel instead.

            Nevertheless, if you take a look at the "class list":http://developer.qt.nokia.com/doc/qt-4.8/classes.html#d, which one might be suitable to iterate over directories?

            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