Discussion Board

Results 1 to 2 of 2
  1. #1
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,293
    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,

    Code:
    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.

    Thanks,

  2. #2
    Registered User pixsta's Avatar
    Join Date
    Apr 2008
    Posts
    437
    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 C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved