PDA

View Full Version : Qt Drawing



Talguy
11th January 2011, 15:53
How do I add an arc with a certain radius to a drawing path. I don't want to draw a seperate line and arc and try and get them to match up. I want one continous path.

craigdillabaugh
11th January 2011, 19:04
Is drawCoord (http://doc.qt.nokia.com/latest/qpainter.html#drawChord)
what you are looking for?

Talguy
11th January 2011, 19:48
I'm looking to do something more like the the opened ended rectangle below with one side having an arc (Slashes are arcs)

___________
\
___________/

SixDegrees
11th January 2011, 19:54
Look at QPainterPath.

Talguy
12th January 2011, 04:14
Look at QPainterPath.

Yea thats what I needed. had to use arcMoveTo() to get the right result