JavaScript API: Manipulate elements of a PlasmaSvg

Aaron J. Seigo aseigo at kde.org
Wed Feb 24 15:45:34 CET 2010


On February 24, 2010, Liebe Markus (RtP2/TEF72) wrote:
> In the svg file there is a text element:
> <text id="textitem"  ... >mytext</text>
> 
> Is it somehow possible to access this textitem and set/change its value
> using the Plasma Javascript API?

the only way to do this currently (in c++ or any other language) is to paint 
the text manually into the bounding box defined by the textitem element.

as Marco noted already, this is a limitation of QSvgRenderer.

-- 
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