Discussion Board

Results 1 to 2 of 2
  1. #1
    Super Contributor
    Join Date
    Oct 2008

    to get image from directory using FolderListModel

    Hi ,
    In my application I want all images in my screen for that I need to access mobile drive D and E but not C,

    I have tested my application working file in simulator for one folder like below method,

    FolderListModel {
           id: folderModel
           nameFilters: ["*.jpg"]
           //folder: "file:///C:/Documents and Settings/RUPESH/Desktop/mobile_image"
           folder: "file:///C:/Users/My Pictures/outing on 8-Jan2011/NewYearOuting"
       Component {
           id: fileDelegate
           Row {
               Image {
                   width: 150; height: 150
                   fillMode: Image.PreserveAspectFit
                   smooth: true
                   source: folderModel.folder + "/" + fileName
               Text { text: fileName }
    But this code get the data from one folder, I am developing the application for mobile and I want my program search D and E drive , means mass memory and external memory card memory, to get all *.jpg and *.png file.

    What modifications are required in the above code.


  2. #2
    Regular Contributor
    Join Date
    Apr 2008

    Re: to get image from directory using FolderListModel

    you need to use the QML Gallery model/delegate together with a listview.

Similar Threads

  1. QML Image: Failed to get image from provider
    By mismael in forum [Archived] Qt Quick
    Replies: 1
    Last Post: 2011-05-17, 13:09
  2. get frame from recorded video and convert it to an image using j2me
    By gultor in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2011-05-04, 18:34
  3. How to get image path from image gallary
    By bnpawar in forum Symbian
    Replies: 6
    Last Post: 2010-11-26, 07:48
  4. Replies: 1
    Last Post: 2010-03-13, 17:23
  5. How to get the image directory and the images?
    By martin.wainamoinen in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2008-02-02, 11:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts