Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    FolderListModel example showing just one file

    QML and Qt Quick
    1
    2
    2205
    Loading More Posts
    • 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
      lawicko last edited by

      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 Reply Quote 0
      • L
        lawicko last edited by

        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 Reply Quote 0
        • First post
          Last post