aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2024-01-30 17:09:21 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2024-01-31 13:41:34 +0000
commitad878d1419bf8ca00c79c5934d7f2aa2aedad23e (patch)
treebc6ffdcbd3e9ad3604b2e7d8847c4234f9f83a5a
parent3ad5f55937b017875f2a31d3eb582262c893d1a2 (diff)
RectangleItem: Workaround for QDS-11845
Change-Id: I614f785c6d53f4bb8c00e3723432883b2e2752e9 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--src/imports/components/RectangleItem.qml13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/imports/components/RectangleItem.qml b/src/imports/components/RectangleItem.qml
index 7d95d77..9861e53 100644
--- a/src/imports/components/RectangleItem.qml
+++ b/src/imports/components/RectangleItem.qml
@@ -207,7 +207,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 rectangle.
@@ -251,8 +256,6 @@ Shape {
property alias dashPattern: path.dashPattern
- property alias joinStyle: path.joinStyle
-
/*!
The rectangle fill color.
@@ -371,7 +374,9 @@ Shape {
return 0
}
- joinStyle: ShapePath.MiterJoin
+ capStyle: root.capStyle
+ strokeStyle: root.strokeStyle
+ joinStyle: root.joinStyle
strokeWidth: 4
strokeColor: "red"