Drawing Arcs, Pies, and Chords
-
At first I didn't understand how a rectangle was involved with drawing these objects. After doing some experimenting I discovered that the rectangle is the bounding box for an ellipse, part of which makes up the arc, pie or chord.
Nowhere have I seen it explicitly stated that this was how these objects were constructed. Nowhere have I found the more traditional method of specifying a centre and radius. Is there a simple explanation for this? I mean, sure it's one way of specifying things but it isn't intuitively obvious, especially with no explanation anywhere.
-
Hi
Well it does show in the samples
http://doc.qt.io/qt-5/qpainter.html
that Rect are used for most operations.If you need alternate way, it should be quite easy to add.
This is user oriented forums so if you are asking why the developers choose such way,
i'm not sure u will get answers here.The devs hang out here
http://lists.qt-project.org/mailman/listinfo/