Using svg/bitmap images in javascript plasmoid

Aaron J. Seigo aseigo at kde.org
Sat Feb 27 17:47:45 CET 2010


On February 27, 2010, Nikola Milenković wrote:
> iw.setIcon("play");

this will attempt to load a play icon from the icon theme. there is no such 
icon. (there is media-playback-start, however).

otherwise, you'll need to pass in the path to the image in your package, e.g.:

iw.setIcon(new QIcon(plasmoid.file("images", "play.png")))

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks


More information about the Plasma-devel mailing list