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. Displaying all images from the same folder?
Forum Updated to NodeBB v4.3 + New Features

Displaying all images from the same folder?

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

    The idea is to list and display all images available in the same folder in graphical view using QML. Wonder how that would be possible? I mean the model part. It should be dynamical, and in perfect case it would follow multiple predefined folders for changes. Is there anything already suitable for this in QML?

    Thanks!

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

      I had this problem a few weeks ago and I used C++ to get the files. There is also a QML folderlist model in the labs : "FolderListModel":http://doc.qt.nokia.com/4.7/qml-folderlistmodel.html

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Schneidi
        wrote on last edited by
        #3

        I solved this by loading the folder in a C++ layer and building a list of file infos.

        I use this list in a QML layer to load the images.

        There are some nice mechanisms to implement something like that.

        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