aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2024-01-30 17:09:57 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2024-01-31 12:48:40 +0000
commit53700188ed37841d28b7bb03dd72498b146367a8 (patch)
tree809c0320916cd7bbafdf3d3baaefabde18463c70
parent2229bc46afb46f4ba85820263acc23404051e65b (diff)
SvgPathItem: Workaround for QDS-11845
Change-Id: Ic3fdd0a3e64de70edef79872df7d43344a87f766 Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
-rw-r--r--src/imports/components/SvgPathItem.qml14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/imports/components/SvgPathItem.qml b/src/imports/components/SvgPathItem.qml
index 6bd1950..a8d1642 100644
--- a/src/imports/components/SvgPathItem.qml
+++ b/src/imports/components/SvgPathItem.qml
@@ -89,7 +89,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.
@@ -146,7 +151,6 @@ Shape {
\sa Qt::PenJoinStyle
*/
- property alias joinStyle: shape.joinStyle
/*!
The fill color of enclosed path segments.
@@ -200,7 +204,6 @@ Shape {
\sa Qt::PenCapStyle
*/
- property alias capStyle: shape.capStyle
layer.enabled: root.antialiasing
layer.smooth: root.antialiasing
@@ -210,7 +213,10 @@ Shape {
id: shape
strokeWidth: 4
strokeColor: "red"
- joinStyle: ShapePath.MiterJoin
+ capStyle: root.capStyle
+ strokeStyle: root.strokeStyle
+ joinStyle: root.joinStyle
+
PathSvg {
id: pathSvg