[Qt-interest] How to Reach All The Points of a QPainterPath
Alessandro Portale
Alessandro.Portale at trolltech.com
Fri Apr 2 09:30:31 CEST 2010
Am 02.04.2010 07:35, schrieb hakiim the dream:
> If I consider your suggestion to use element, I think I can only have
> the elements of the path ( lineTo, moveTo,.. ), then how I can get
> points of them?
QPainterPath::Element does not only describe the element type (lineTo,
moveTo, ..), but also the x and y coordinates. Are the x and y
coordinates not what you are looking for?
> > QPainterPath gives access to the elements in the path:
> > http://qt.nokia.com/doc/4.6/qpainterpath.html#elementCount
> > http://qt.nokia.com/doc/4.6/qpainterpath.html#elementAt
> >
> > Since a QPainterPath element is more than just a QPoint, you can
> analyze each returned Element:
> > http://qt.nokia.com/doc/4.6/qpainterpath-element.html
More information about the Qt-interest-old
mailing list