Hi,

I'm trying to use Plasma::Svg to load an svg file from a plasma package. I put 
the svg file into the contents/images directory, as suggested in [1]. Then i 
tried to load them using Plasma::Svg::setImagePath(). Intuitively I'd expect 
something like this to work:

Plasma::Svg svg;
svg.setImagePath("images/filename.svg")

But if I understand this correctly, this is only used to load theme svg 
images, not custom svg images. If I want to load my own images I'm supposed to 
load them using absolute paths. Is there a way to tell Plasma::Svg to look for 
an svg file relative to the contents directory of a plasma package?

Regards,
 Florian

[1] http://techbase.kde.org/Projects/Plasma/Package
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to