From b81fe571e247c5d3401d7964d235f848a0bf7b82 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 30 Jan 2024 17:09:57 +0100 Subject: SvgPathItem: Workaround for QDS-11845 Change-Id: Ic3fdd0a3e64de70edef79872df7d43344a87f766 Reviewed-by: Thomas Hartmann --- src/imports/components/SvgPathItem.qml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/imports/components/SvgPathItem.qml b/src/imports/components/SvgPathItem.qml index 108e5f0..729746b 100644 --- a/src/imports/components/SvgPathItem.qml +++ b/src/imports/components/SvgPathItem.qml @@ -88,7 +88,12 @@ Shape { \sa Qt::PenStyle */ - property alias strokeStyle: shape.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 line. @@ -145,7 +150,6 @@ Shape { \sa Qt::PenJoinStyle */ - property alias joinStyle: shape.joinStyle /*! The fill color of enclosed path segments. @@ -199,7 +203,6 @@ Shape { \sa Qt::PenCapStyle */ - property alias capStyle: shape.capStyle layer.enabled: root.antialiasing layer.smooth: root.antialiasing @@ -209,7 +212,10 @@ Shape { id: shape strokeWidth: 4 strokeColor: "red" - joinStyle: ShapePath.MiterJoin + capStyle: root.capStyle + strokeStyle: root.strokeStyle + joinStyle: root.joinStyle + PathSvg { id: pathSvg -- cgit v1.2.3