From the docs:
QPainter
offers two methods of painting QPolygons
: drawPolygon
and drawConvexPolygon
.
Nowhere in the documentation is it made clear what the difference between them is. Additionally, the drawConvexPolygon
docs state
If the supplied polygon is not convex, i.e. it contains at least one angle larger than 180 degrees, the results are undefined.
So... what is it for? I hoped the method would somehow find the convex hull of my polygon and paint that, however that doesn't seem to be the case.