[PyQt] Text on SVG images

David Boddie david at boddie.org.uk
Mon Apr 12 01:55:54 BST 2010


On Tue Apr 6 17:39:50 BST 2010, Anshul Jain wrote:

> As we know that text on an svg image cannot be directly displayed.
>
> Please suggest an easy and efficient way to display text on SVG images.

It might be possible to subclass QSvgWidget and reimplement the paintEvent()
method, calling the base class's implementation before painting your own text
on top of the drawing.

David


More information about the PyQt mailing list