QT使用给定点绘制闭合曲线 QPainterPath path; QVector<QPointF> vecPoint; QPolygonF poly(vecPoint); path.addPolygon(poly); paint->drawPath(path);