aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2024-01-30 17:05:17 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2024-01-31 12:20:27 +0000
commit994df98c8564e79b82da4657e6d12c37cea660f1 (patch)
treec35f62de702c2932dc04bda0aa7bd14952b84c44
parent134ba17130af18769b375f31345c6ee3c4e0eca2 (diff)
ArcItem: Workaround for QDS-11845
Change-Id: I0e2d0ef4987d6ec121f3718f03383a9e20787ac2 Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
-rw-r--r--src/imports/components/ArcItem.qml14
1 files 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)