title: Can I use a QPainter to draw a line with a per-vertex color?
body: <p>I have a custom Qt 5 widget that renders itself using <code>QPainter</code>. I would like to be able to draw a line where each vertex is associated with a different color, and the color is interpolated accordingly along the lines joining the points. Is this possible?</p>