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. FolderListModel example showing just one file
QtWS25 Last Chance

FolderListModel example showing just one file

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

    So I've been looking for a way to display the content of a dir. I've found this http://doc.qt.nokia.com/4.7-snapshot/qml-folderlistmodel.html#folder-prop and it looks like it's exactly what I need. However, the example code does not really display everything in the directory, the list is only populated with one file name. Even if I remove the filter I still get just 1 item. Any ideas what am I missing here?

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

      Forget it, my view delegate was producing items that filled the view port, this is why only one item was visible.

      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