From 994df98c8564e79b82da4657e6d12c37cea660f1 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 30 Jan 2024 17:05:17 +0100 Subject: ArcItem: Workaround for QDS-11845 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0e2d0ef4987d6ec121f3718f03383a9e20787ac2 Reviewed-by: Henning Gründl --- src/imports/components/ArcItem.qml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/imports/components/ArcItem.qml b/src/imports/components/ArcItem.qml index a1c8f2e..b71be2d 100644 --- a/src/imports/components/ArcItem.qml +++ b/src/imports/components/ArcItem.qml @@ -148,7 +148,6 @@ Shape { \sa Qt::PenStyle */ - property alias strokeStyle: path.strokeStyle /*! The width of the arc line or outline. @@ -194,7 +193,12 @@ Shape { */ property alias dashPattern: path.dashPattern - property alias joinStyle: path.joinStyle + //property alias joinStyle: path.joinStyle + property int joinStyle: ShapePath.BevelJoin //workaround for regression in Qt 6.6.1 (QDS-11845) + //property alias capStyle: path.capStyle + property int capStyle: ShapePath.FlatCap //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 arc fill color. @@ -226,7 +230,7 @@ Shape { \sa round, roundBegin, roundEnd, Qt::PenCapStyle */ - property alias capStyle: path.capStyle + /*! The starting point of the dash pattern for the arc or arc outline. @@ -377,7 +381,9 @@ Shape { strokeColor: "red" strokeWidth: 4 - capStyle: ShapePath.FlatCap + capStyle: root.capStyle + strokeStyle: root.strokeStyle + joinStyle: root.joinStyle startX: root.polarToCartesianX(path.__xCenter, path.__yCenter, path.__xRadius, root.sortedBegin() - 90) startY: root.polarToCartesianY(path.__xCenter, path.__yCenter, path.__yRadius, root.sortedBegin() - 90) -- cgit v1.2.3