[Qt-interest] SVG Problem
Alessandro Portale
alessandro.portale at nokia.com
Wed Nov 24 21:06:31 CET 2010
On 11/24/2010 8:44 PM, ext Lucas Pereira Caixeta wrote:
> Anybody ever used SVG with C++ / qt? I opened the face ... but would
> like to know how to use the ids on the events.
Yes, I did that a few times. Qt has the QtSvg module which offers some
functionality to load and render svg graphics (also by id for single
elements).
http://doc.qt.nokia.com/latest/qsvgrenderer.html
> * Each image (vector) of SVG has an ID. Which method to use to get the
> id I want?
If you mean the id of elements inside an SVG document, you should be
fine with the functions elementExists(), boundsOnElement() and render(),
which all can take an element id (see link above).
> I type for a few slots when the person chooses the id as the event is on
I assume that you need to implement that in your own code.
More information about the Qt-interest-old
mailing list