Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.0
-
None
-
Linux g++
-
24c1173
Description
When drawing a Rectangle with gradient fill, the pixel offset is incorrectly drawn when antialiasing (smooth=true) is enabled on the Rectangle. Note that the issue does not apply on rectangles with simple color fills, and the discussion on the mailing list has revealed that the intended behavior is to have sharp edges when smooth=true is enabled even if integer coordinates are specified. (internally this implies that we need to add a .5 offset to the paint engine to avoid averaging the borders)
A somewhat minimal example to reproduce this:
Rectangle {
width: 100
height: 100
gradient: Gradient {
GradientStop
GradientStop { position: 1.0; color: "white" }}
border.color: "black"
border.width: 1
radius: 4
smooth:true
}