Thanks for the replies guys.
I went with the Qwt 6.2 option.
I implemented the QwtSplineCurveFitter and I have what I want.
Here is my implementation for anyone who has this issue:
QVector<QPointF> points;
points << startPoint;
for (int i=0; i<mHandles.size(); i++) {
points << mHandles.at(i)->scenePos();
}
points << endPoint;
testCurve
= curveFitter.
fitCurvePath(QPolygonF(points
));
painter->drawPath(testCurve);
QVector<QPointF> points;
points << startPoint;
for (int i=0; i<mHandles.size(); i++) {
points << mHandles.at(i)->scenePos();
}
points << endPoint;
QPainterPath testCurve;
QwtSplineCurveFitter curveFitter;
testCurve = curveFitter.fitCurvePath(QPolygonF(points));
painter->drawPath(testCurve);
To copy to clipboard, switch view to plain text mode
Uwe, thank you so much for this! I had been trying to come up with a solution for a long time!
- Barry
Bookmarks