Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, July 2006
Drawing Arcs


Message 1 in thread

Dear all,

I've been fighting this for a long time now and I've been unable to
figure out how to solve my problem.  When drawing an arc, how does one
define the QRectF? I've tried finding the box that surrounds the arc
(by finding the extremes to the left, right, top and bottom), but it
draws it in a different size!

I assume that I'm missing something obvious in the documentation, in
which case I apologise, but could someone help me with this please?

If have an arc, defined by the centre point, the radius and a couple
of angles, what is the correct way to get the QRectF necessary to use
the QPainter::drawArc function?

Many thanks in advance,

Al

--
 [ signature omitted ] 

Message 2 in thread

Please ignore this: I've figured it out.  I didn't realise that the
"rectangle describing the arc" was the rectangle around the circle
from which the arc is made.

Al

--
 [ signature omitted ]