Unsolved Get a shape from an SVG ?
-
Hello!
I have a custom QGraphicsObject control which draws a shape from an SVG file. This works wonderfully except that I also implement the hover events which although also work, I'm having trouble with getting the shape out this SVG file without having to manually recreate its path and returning it in the shape() override.
I'm sure it's asking a lot, but is there a way out there to get a QSvgRenderer to return the file's outer path? Something simple like:
QPainterPath path; path.addPolygon(mySvgRenderer->getPolygonShape()); return path;
Life can't be that simple, right…?
Best Wishes,
Adam
-
No answers?
-
@Adam-Crowe said in Get a shape from an SVG ?:
is there a way out there to get a QSvgRenderer to return the file's outer path?
No.