Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.2
-
None
-
77342ad3e7beecb75c136ee26c0c77cd1a41b415
Description
The documentation for the Rectangle component regarding border.width states "A width of 1 creates a thin line. For no line, use a width of 0 or a transparent color."
Loading the following in qmlviewer results in a rectangle with a 1-pixel border:
import QtQuick 1.0 Item { width : rect.width * 2 height : rect.height * 2 Rectangle { id : rect width : 100 height : 100 x : 10 y : 10 border.width : 0 border.color : "red" } }
The size of the border scales along with the rest of the element if a Scale transformation is applied, unlike a cosmetic QPen.