2

is it possible to add a specific angles to polyline in QT?

i draw a polyline with:

 QPointF points[3] = {      
     QPointF(x,y),
     QPointF(x2,y2};
     QPointF(x3,y3};
     painter.drawPolyline(points, 3);

I need a polyline with an arrow at the end. My Idea was that i copy the last line part, reduce his size and give him an specific angle.

user3676560
  • 151
  • 2
  • 15

1 Answers1

1

I don't think it is possible, I can only suggest you to look at the Analog Clock example on the documentation to see how to draw a rotated arrow.

Gianluca
  • 3,227
  • 2
  • 34
  • 35