open non-theme svg file

Florian florianmerz at gmx.de
Sun Dec 13 22:38:39 CET 2009


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


More information about the Plasma-devel mailing list