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 16:35:14 +0000
commitfec54d83eb9576fc046785aea44e45ad5dc4547c (patch)
tree44aa71c59d95a860f673790e24f6c67a0378c5cf
parentbfb75f955aca387f681ea5b7471de3d466f4f19d (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 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