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
Forum Updated to NodeBB v4.3 + New Features

FolderListModel example showing just one file

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 2.4k Views 1 Watching
  • 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 4 Nov 2010, 13:51 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 4 Nov 2010, 15:13 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

      1/2

      4 Nov 2010, 13:51

      • Login

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