Trolltech Home | Qtopia-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qtopia-interest Archive, November 2007
Re: Where are Pictures stored?


Message 1 in thread

Bill KING wrote:
> Paul Miller wrote:
>> I'm working on an app that works on the user's stored photos/pictures,
>> specifically ones recorded from the built-in camera (if there is one).
>>
>> How can I query the path(s) to this/these locations? Or are they
>> hard-coded?
>>
> 
> QContentSet documentset(QContentFilter::category( QLatin1String( "Camera" ) ) );
> 
> It's the only guaranteed way to get the list of photos from the camera, as layout of filesystems may change across devices.

I don't seem to have QContentFilter::category() in my SDK (4.2.2).

However, I came across QImageDocumentSelector, which is exactly what I 
need. However, there are no images on the emulator device. How can I put 
some on there so I get images in the selector? (there are none in the 
built-in "Pictures" application either).

Once I have made changes to the image, what is the proper way to store 
the edited image document? Should I overwrite the original, add some 
kind of suffix, or is there some other approved method for allowing the 
user to come up with a unique document name?

-- 
 [ signature omitted ]