diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2024-01-30 17:09:41 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2024-01-31 13:41:34 +0000 |
commit | 3ad5f55937b017875f2a31d3eb582262c893d1a2 (patch) | |
tree | 9324c2fd8a4050666dbdcc2aee6bf383b1995479 | |
parent | b81fe571e247c5d3401d7964d235f848a0bf7b82 (diff) |
RegularPolygonItem: Workaround for QDS-11845
Change-Id: I9eb8900b0fa5c7360da0c1dbdba6970a2a31b9a5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r-- | src/imports/components/RegularPolygonItem.qml | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/imports/components/RegularPolygonItem.qml b/src/imports/components/RegularPolygonItem.qml index 555d73f..cf22c7c 100644 --- a/src/imports/components/RegularPolygonItem.qml +++ b/src/imports/components/RegularPolygonItem.qml @@ -81,7 +81,12 @@ Shape { \sa Qt::PenStyle */ - property alias strokeStyle: path.strokeStyle + //property alias joinStyle: path.joinStyle + property int joinStyle: ShapePath.MiterJoin //workaround for regression in Qt 6.6.1 (QDS-11845) + //property alias capStyle: path.capStyle + property int capStyle: ShapePath.SquareCap //workaround for regression in Qt 6.6.1 (QDS-11845) + //property alias strokeStyle: path.strokeStyle + property int strokeStyle: ShapePath.SolidLine //workaround for regression in Qt 6.6.1 (QDS-11845) /*! The width of the border of the regular polygon. @@ -124,9 +129,6 @@ Shape { */ property alias dashPattern: path.dashPattern - - property alias joinStyle: path.joinStyle - /*! The regular polygon fill color. @@ -175,7 +177,10 @@ Shape { ShapePath { id: path - joinStyle: ShapePath.MiterJoin + capStyle: root.capStyle + strokeStyle: root.strokeStyle + joinStyle: root.joinStyle + strokeWidth: 4 strokeColor: "red" startX: 0 |