From 8ff616c78c0ce7255d37f14fd00a05e6d2289d37 Mon Sep 17 00:00:00 2001 From: Eirik Aavitsland Date: Mon, 19 Aug 2024 10:44:07 +0200 Subject: [PATCH] Controls: Avoid visual glitches in Material style The ElevationEffect renders into a layer. However, as the layer sampling was not specified as smooth, there was a risk that visual glitches could be produced when the layer was rendered onto the scene. Fixes: QTBUG-115759 Pick-to: 6.8 Change-Id: Id793fd224434b9b6e946ed4e31eba79e9f92db8e Reviewed-by: Mitch Curtis --- src/quickcontrols/material/impl/ElevationEffect.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/quickcontrols/material/impl/ElevationEffect.qml b/src/quickcontrols/material/impl/ElevationEffect.qml index 29ec742f4a..330ce49e7f 100644 --- a/src/quickcontrols/material/impl/ElevationEffect.qml +++ b/src/quickcontrols/material/impl/ElevationEffect.qml @@ -204,6 +204,7 @@ Item { // By rendering as a layer, the shadow will never show through the source item, // even when the source item's opacity is less than 1 layer.enabled: true + layer.smooth: true // The box shadows automatically pick up the size of the source Item and not // the size of the parent, so we don't need to worry about the extra padding