Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Displaying images/thumbs from phone gallery
Forum Updated to NodeBB v4.3 + New Features

Displaying images/thumbs from phone gallery

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 2.9k 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

    I need to create images selector in my Qt app on Symbian phone. Is there any good example how to retrieve available images from gallery and display thumbnails?

    So far I only managed to display images from gallery using DocumentGalleryModel:

    @GridView {
    anchors.fill: parent
    cellWidth: 128
    cellHeight: 128

                model: DocumentGalleryModel {
                    rootType: DocumentGallery.Image
                    properties: [ "url" ]
                    filter: GalleryContainsFilter {
                        property: "fileName"
                        value: "jpg"
                    }
                }
    
                delegate: Image {
                    source: url
                    width: 128
                    height: 128
                }
            }@
    

    Problem is it retrieves full sized images from gallery, and then tries to scale them down. Instead I need to load thumbnails of images.

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

      From where it should it load the thumbnails? Even the default gallery loads the thumbnails dynamically. If you are talking about the thumbnails that are stored in the _Paltbin of each and every image folder, then they will be created only if you view the images in default image viewer. Eventhough there is no guarantee that QML DocumentGalleryModel will load those thumbnails.

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

        There is a Thumbnail Manager in S60 / Symbian, which is usually responsible for generating thumbnails and providing those to the app when requested. I'd expect to get same thumbnails that default gallery gets. Generating them on the fly when user already requested the view to be opened is madness :D

        1 Reply Last reply
        0
        • R Offline
          R Offline
          raja26
          wrote on last edited by
          #4

          Then probably you have to request this feature via "bugreports":http://bugreports.qt.nokia.com, to get this working. If can contribute with the Symbian C++ code.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            deion
            wrote on last edited by
            #5

            This is madness, I CAN'T believe this is not available in QML (or it's available but takes forever because DocumentGalleryModel scales the photos every time and does not use the existing thumbnails). I am trying to port my app to Symbian and I never thought such a SIMPLE feature as to launch a preview gallery with thumbnails to let the user choose a photo would be so complicated; the only solutions I've seen use C++ to generate the thumbnails for their own use; so each app that tries to use the photo gallery will create their own set of thumbnails instead of using the existing thumbnails created by the camera app

            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