Issue with Shadow Blur Rendering in MultiEffect (Qt 6.7.1)
-
Hello,
I’m experiencing an issue with shadow blur rendering in MultiEffect while using Qt 6.7.1. I want to create a shadowed rectangle for my dropdown menus, but no matter how I adjust the shadow settings, I keep seeing gradient lines in the background. It looks as if a secondary shadow of a different color is spreading around the item.
Here’s a screenshot with my app on the left and the Figma prototype on the right:
I tried reducing the Shadow scale as much as possible. While I managed to shrink the gradient lines and make them look better than in the screenshot, they are still visible. Below is a GIF demonstrating how the lines behave when different options are adjusted:
My guess is that QML prioritizes performance for embedded devices by default, which might be affecting the shadow rendering. Is there a way to achieve smoother shadow rendering? I know there are options to improve image rendering quality, but I couldn’t find a similar setting for effects.
Feedback on MultiEffect
As a side note, I find MultiEffect somewhat unintuitive. It seems designed to cover multiple use cases at once, but certain parameters, such as Blur Multiplier and Blur Max, are unclear. Do they affect the shadow, the blur over the item, or both? Under what conditions does each take effect?
I’d appreciate any help or suggestions! Thanks in advance.