[Solved] Lenght and intermediate points with Bezier curves
I have some problems with Bezier curves.
I'm developing an app that shows some bezier curves.
Now I have to set intermediate points of this Bezier curve, between the start and finish point. And take the lenght of this points in the Bezier Curve.
Is there any Qt class to perform that? Or someone knows how to set an intermediate point in this kind of curve? and guess the lenght of this curves?
PD: this thread is related with "this one":http://qt-project.org/forums/viewthread/25218/
void QPainterPath::cubicTo or void QPainterPath::quadTo add bezier curves to a painter path
to move along a path, use:
QPointF QPainterPath::pointAtPercent(qreal t) const
It gives you a point along the curve at a position from 0.0 to 1.0
Was my fault for not reading all the documentation.
As I can see QPainterPath also solves other problem I have, intersects between paths.