Using svg/bitmap images in javascript plasmoid

Nikola Milenković electronik87 at gmail.com
Sat Feb 27 13:58:52 CET 2010


Hi,

has anyone had any luck with using icons in javascript plasmoids?
I would like to include a few transparent buttons in plasmoid that I'm
developing for Jam session.

I tried to use IconWidget, and SvgWidget, but no luck.
IconWidget always displays default icon with a question mark in it, and
SvgWidget doesn't display anything at all.

Any help would be appreciated.

Here is some code snippets that I used:

iw = new IconWidget;
iw.adjustSize(200, 200);
iw.setIcon("play");
layout.addItem(iw);

png and svg versions of play icon are in contents/images folder.

kded4 -v:
Qt: 4.6.2
KDE Development Platform: 4.4.00 (KDE 4.4.0) "release 224"
KDE Daemon: $Id: kded.cpp 1031637 2009-10-05 16:58:19Z lunakl $
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20100227/4c42993d/attachment.htm 


More information about the Plasma-devel mailing list