Originally Posted by wysota If you have a simple shape, you can calculate it based on the bounding rectangle yourself. Qt Code: Switch view QPainterPath shape;shape.addEllipse(boundingRect()); QPainterPath shape; shape.addEllipse(boundingRect()); To copy to clipboard, switch view to plain text mode but how can yo do that if you don't even know the name of the objects inside the SVG file unless you parse it on your own? And what iif the object is a path (a pentagon, a star, or whatever?). You can't tell anything from the boundingRect, but the node itself can.
QPainterPath shape;shape.addEllipse(boundingRect());
QPainterPath shape; shape.addEllipse(boundingRect());
Forum Rules
Bookmarks