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 16:34:47 +0000 |
commit | bfb75f955aca387f681ea5b7471de3d466f4f19d (patch) | |
tree | 1808de45fe12648a68f2345d5ec4fc7ed6ec319b | |
parent | c7f3b73a39a787298396984ce8db6631cf72b624 (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 29849f1..37502df 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 |