Ideal Location to Store Images in Codebase?
Gilles Caulier
caulier.gilles at gmail.com
Sat Jun 27 08:46:20 BST 2020
Hi Kartik,
Data as embedded images are located in core/data/pics/ directory.
https://invent.kde.org/graphics/digikam/-/tree/master/core/data/pics
You can create a new subdir for your images and install files on your
system using cmake rules like this one :
https://invent.kde.org/graphics/digikam/-/blob/master/core/data/pics/borderpatterns/CMakeLists.txt
To load this image on demand in your dialog, this look simple like
this using QStandardPaths::locate :
https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/dimg/filters/decorate/bordersettings.cpp#L546
In Setup editor page, i embedded a photo to illustrate the over/under
exposure effect settings.
Photo is here :
https://invent.kde.org/graphics/digikam/-/blob/master/core/data/pics/digikam/sample-aix.png
Code is here :
https://invent.kde.org/graphics/digikam/-/blob/master/core/utilities/setup/editor/setupeditoriface.cpp#L203
Best
Gilles Caulier
Le sam. 27 juin 2020 à 08:29, Kartik Ramesh <kartikx2000 at gmail.com> a écrit :
>
> Hello all,
>
> I am working on a help-box for users to help with using the Face Management Workflow. I have created a dialog-box which contains images. Currently, I'm using images on my local machine, so I can use absolute paths. What is the correct location in the code directory, where I should store these images?
>
> Thanks
> Kartik
More information about the Digikam-devel
mailing list