Registered Member
|
Hello,
I'm trying to display a SVG in my plasmoid, like this:
My package structure looks like this:
Alas, the image is never loaded, and isValid() always returns false. Moving meter.svg around the file hierarchy doesn't help either. If I use an absolute path, the SVG is shown. Where inside my package do I have to put the SVG file so that it is found with a relative path? (Strangely enough, above seems to work on Fedora, but not on Kubuntu?!) Regards Ralph |
Administrator
|
Have you read http://api.kde.org/4.x-api/kdelibs-apid ... 6742ebc35b ?
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Registered Member
|
Yes, I have, and all the tutorials on TechBase as well. But the information isn't there.
From the API:
Searched where -- the package root? The contents directory? Why isn't the file found in any position I've tried? Ralph |
Administrator
|
Unfortunately I'm not very knowledgeable in this area (especially not scripted widgets), but you can look at other widgets for examples, e.g. http://kde-look.org/content/show.php/gm ... ent=101229 and http://kde-look.org/content/show.php/Now+Rocking?content=106304.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]