diff --git a/lib_source/qml/Qt5/RibbonRectangle.qml b/lib_source/qml/Qt5/RibbonRectangle.qml index 9c5af78..91ec71f 100644 --- a/lib_source/qml/Qt5/RibbonRectangle.qml +++ b/lib_source/qml/Qt5/RibbonRectangle.qml @@ -16,6 +16,8 @@ Item { Shape { id: shape anchors.fill: parent + layer.enabled: true + layer.samples: 4 // Workaround for Qt 6.5 and below, for Qt 6.6, just set "preferredRendererType" to "Shape.CurveRenderer" ShapePath { capStyle: ShapePath.RoundCap strokeWidth: 0 @@ -39,9 +41,11 @@ Item { width: shape.width height: shape.height anchors.centerIn: parent + layer.enabled: true + layer.samples: 4 ShapePath { capStyle: ShapePath.RoundCap - strokeWidth: control.borderWidth + strokeWidth: control.borderWidth * 2 strokeColor: control.borderColor fillColor: "transparent" joinStyle: ShapePath.RoundJoin diff --git a/lib_source/qml/Qt6/RibbonRectangle.qml b/lib_source/qml/Qt6/RibbonRectangle.qml index 7ef2343..62acbd2 100644 --- a/lib_source/qml/Qt6/RibbonRectangle.qml +++ b/lib_source/qml/Qt6/RibbonRectangle.qml @@ -18,6 +18,8 @@ Item { Shape { id: shape anchors.fill: parent + layer.enabled: true + layer.samples: 4 // Workaround for Qt 6.5 and below, for Qt 6.6, just set "preferredRendererType" to "Shape.CurveRenderer" ShapePath { capStyle: ShapePath.RoundCap strokeWidth: 0 @@ -41,9 +43,11 @@ Item { width: shape.width height: shape.height anchors.centerIn: parent + layer.enabled: true + layer.samples: 4 ShapePath { capStyle: ShapePath.RoundCap - strokeWidth: control.borderWidth + strokeWidth: control.borderWidth * 2 strokeColor: control.borderColor fillColor: "transparent" joinStyle: ShapePath.RoundJoin