阅读背景:

用QPainter将不同厚度的连接线连接起来,形成一个干净的边框

来源:互联网 

I am trying to draw a rectangle. The color,thickness and the pen style for each border of the rectangle must be customizable. For example, I must be able to draw a rectangle with left border thickness say 5 and color being red, and right border thickness = 6 and color being blue and so on. So I decided to draw 4 different lines and connect them to form a rectangle. The below function draws a rectangle with different borders given the origin point, border thicknesses and rectangle width and height. The left and right borders must start after the top line space. (y = originY+topThickness) and end just before bottom border(end Y = orginY+ rectangleHeight -bottomThickness). I am trying to draw a rectangle. The color,thic




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: