aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2024-01-30 17:07:22 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2024-01-31 16:33:21 +0000
commit77c072bdc7e0ca1ebb85a5ce129e93dd745a3125 (patch)
tree45d449b3e689b7c1e3793609520f5a449f9876a3
parent3e9415155de1221beb6478682ea48562a22d01cb (diff)
PieItem: Workaround for QDS-11845
Change-Id: Ic349ec6b6e1d739aed31aff20a870e668cda6570 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--src/imports/components/PieItem.qml14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/imports/components/PieItem.qml b/src/imports/components/PieItem.qml
index a9190bb..b08be21 100644
--- a/src/imports/components/PieItem.qml
+++ b/src/imports/components/PieItem.qml
@@ -125,7 +125,13 @@ Shape {
\sa Qt::PenStyle
*/
- property alias strokeStyle: path.strokeStyle
+
+ //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 width of the line.
@@ -167,7 +173,6 @@ Shape {
\sa QPen::setDashPattern()
*/
property alias dashPattern: path.dashPattern
- property alias joinStyle: path.joinStyle
/*!
The pie fill color.
@@ -217,7 +222,6 @@ Shape {
\sa Qt::PenCapStyle
*/
- property alias capStyle: path.capStyle
/*!
The position in degrees where the pie begins.
@@ -287,7 +291,9 @@ Shape {
property real __yCenter: root.height / 2
strokeColor: "red"
- capStyle: ShapePath.FlatCap
+ capStyle: root.capStyle
+ strokeStyle: root.strokeStyle
+ joinStyle: root.joinStyle
strokeWidth: 4