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 13:41:34 +0000
commitb81fe571e247c5d3401d7964d235f848a0bf7b82 (patch)
treeee4e00272d1dca2229c0cfae4f95b01fc4ebd52e
parent0d587c2941b7f59a5220d06a71d27fa611901342 (diff)
SvgPathItem: Workaround for QDS-11845
Change-Id: Ic3fdd0a3e64de70edef79872df7d43344a87f766 Reviewed-by: Thomas Hartmann <thomas.hartmann@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 108e5f0..729746b 100644
--- a/src/imports/components/SvgPathItem.qml
+++ b/src/imports/components/SvgPathItem.qml
@@ -88,7 +88,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.
@@ -145,7 +150,6 @@ Shape {
\sa Qt::PenJoinStyle
*/
- property alias joinStyle: shape.joinStyle
/*!
The fill color of enclosed path segments.
@@ -199,7 +203,6 @@ Shape {
\sa Qt::PenCapStyle
*/
- property alias capStyle: shape.capStyle
layer.enabled: root.antialiasing
layer.smooth: root.antialiasing
@@ -209,7 +212,10 @@ Shape {
id: shape
strokeWidth: 4
strokeColor: "red"
- joinStyle: ShapePath.MiterJoin
+ capStyle: root.capStyle
+ strokeStyle: root.strokeStyle
+ joinStyle: root.joinStyle
+
PathSvg {
id: pathSvg