I'm trying to draw some lines in qml on a canvas. When I have an angle of less than 20 degrees or so formed by the vertices of a polygon, the resulting geometry has a very pointy spike on the end of the angle, which protrudes past the actual vertex of the polygon.
I am trying to use RoundJoin to correct for that, but I can't seem to get the syntax right. There is no change to the behavior no matter what variations I try (unless I just create a syntax error).
import QtQuick.Shapes
ctx = getContext("2d");
ctx.joinStyle = ShapePath.RoundJoin;
Can anybody tell me what I'm doing wrong here?
Thanks.
bc