PDA

View Full Version : QPainterPath.arcTo



grellsworth
18th March 2008, 16:11
I'm trying to draw an arc like so:

QPainterPath sixArc;

sixArc.arcTo(QRectF(-200, -200, 400, 400), 18, -36);

This works OK, except I don't want the straight line from the center of the circle to the starting point of my arc.

How do I get rid of it, but leave the curved part of my arc intact?

Suggestions, please.

Thank You,

Gordon E.

aamer4yu
18th March 2008, 17:36
From Qt Assistant.. about arcTo() function, it says...

Note that this function connects the starting point of the arc to the current position if they are not already connected. After the arc has been added, the current position is the last point in arc

u can use moveTo() function to overlap current position and start point,,,, or something like that. Hope u get what i mean to say :)