C++ (Qt)qreal angle = path.angleAtPercent(percent);
C++ (Qt)if (angle >0) angle = 360 - angle;else angle = fabs(angle);
C++ (Qt)QFontMetrics fm = painter.fontMetrics();QPointF center = QPointF( point.x() - (fm.width(hw[i])/2), point.y());painter.drawText(center,QString(hw[i]));