[Digikam-devel] Getting list of images

Gilles Caulier caulier.gilles at gmail.com
Sun Nov 24 22:32:01 GMT 2013


Try this code :

QStringList paths = DatabaseAccess().db()->getItemURLsInAlbum(id);

...where "id" is tag album ID. It's return a list of paths of all
items set with tag.

This code is used for ex into fingerprint generator (Maintenance tool) :



Gilles Caulier

2013/11/24 Kevin Dalley <kevin at kelphead.org>:
> Is there an easy way to get a list of all images using a given tag? My
> preference: return ImageInfoList, so that I can pass it to
> MetadataSynchronizer.
> I suspect that this is easy, but I haven't figured out how to do it.
> I'm trying to fix a digikam bug,
> https://bugs.kde.org/show_bug.cgi?id=309058
> where renaming a tag does not change the image file, or the sidecar
> file. Also deleting a tag does not effect the image or sidecar file.
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel

More information about the Digikam-devel mailing list