Draw a line and curves with fading edges with QPainter?

QPainter is very easy to use and to draw a line one would simply do this: QPainter painter(&image); QPen pen; p...

Connecting lines of different thickness to form a clean border using QPainter?

I am trying to draw a rectangle. The color,thickness and the pen style for each border of the rectangle must be cust...