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

Qt-interest Archive, September 2007
QPainterPath::Element


Message 1 in thread

Hi

looking at a simple qpainterpath with just one quadratic curve, I found
that the points returned by elementAt(i) are not the ones provided
during the set-up of the path...

a simple "quadTo(45, 10,  30, 20)" for example gives a path with 4
element:

  element 0 is of type 0 (move) with point (0.000000, 0.000000)
  element 1 is of type 2 (curve) with point (30.000000, 6.666667)
  element 2 is of type 3 (curve data) with point (40.000000, 13.333333)
  element 3 is of type 3 (curve data) with point (30.000000, 20.000000)

so it seems that the points are not the control points provided by
code... maybe are real points on the curve ?

thanks a lot for any info

    Andy

--
 [ signature omitted ]