QPainterPath path;path.lineTo(....);painter->drawPath(path);
painter->setRenderHint( QPainter::Antialiasing );
QPainterPath path; //идем в начальную точку path.moveTo(points[0].x/scale*coef, (w_height-points[0].y)/scale*coef); //строим все отрезки полигона for (int k=0; k<points.size(); k++) path.lineTo(points[k].x/scale*coef, (w_height-points[k].y)/scale*coef);
for (int k=1; k<points.size(); k++) { path.lineTo(points[k].x/scale*coef, (w_height-points[k].y)/scale*coef); qWarning("dx=%f dy=%f\n", (points[k].x-points[k-1].x)/scale*coef, (points[k].y-points[k-1].y)/scale*coef); }
QPolygonF isoline();.... //заполнение точкамиQPainterPath path(isoline[0]);for (int k=1; k<isoline.size(); k++) path.lineTo(isoline[k]);painter->drawPath(path);
QPolygonF isoline();.... //заполнение точкамиpainter->drawPolyline(isoline);