QSvgRenderer has a boundsOnElement() method which gives you the bounding box of a specific element in an svg file: http://qt-project.org/doc/qt-4.8/qsvgrenderer.html#boundsOnElement
On Fri, Mar 8, 2013 at 5:29 PM, Tuan Nguyen <[email protected]> wrote: > Ah, yes, sorry Justin, i mean bounding box. > > > On Fri, Mar 8, 2013 at 11:03 AM, Justin Israel <[email protected]>wrote: > >> Ya, QPainterPath provides "cubicTo": >> http://qt-project.org/doc/qt-4.8/qpainterpath.html#cubicTo >> "Adds a cubic Bezier curve between the current position and the given * >> endPoint* using the control points specified by *c1*, and*c2*." >> >> What do you mean by using an SVG as a QRect? Do you meant to get a >> bounding box from it? >> >> >> On Fri, Mar 8, 2013 at 4:44 PM, illunara <[email protected]> wrote: >> >>> Hi everybody >>> How can i draw a bezier curve in QT?, is QPainterPath the one i need? >>> Also, can i use a SVG file as a QRect? >>> >>> Thanks >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Python Programming for Autodesk Maya" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> >>> To post to this group, send email to [email protected] >>> . >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Python Programming for Autodesk Maya" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/python_inside_maya/CggcLwR1jVs/unsubscribe?hl=en-US >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> >> To post to this group, send email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
