QML Rectangle clipping when using opacity with complex shapes in Qt 6.5
I'm experiencing an scenario with a QML Rectangle that has a complex shape and uses opacity. The Rectangle is supposed to fade in and out smoothly, but when I apply an opacity value less than 1, parts of the shape seem to clip or disappear entirely. This is particularly noticeable when the Rectangle has rounded corners and a gradient fill. I've tried adjusting the `clip` property and setting `visible` to `true`, but the scenario continues. Here's a simplified version of my QML code: ```qml Rectangle { id: myRectangle width: 200 height: 200 radius: 20 color: "lightblue" gradient: Gradient { GradientStop { position: 0.0; color: "blue" } GradientStop { position: 1.0; color: "lightblue" } } opacity: 0.5 visible: true } ``` When I run this, the rectangle doesn't render properly when the opacity is set below 1.0. I also tried setting the `clip` property to `true`, but that didn't resolve the scenario either. This happens on both Windows and Linux with Qt 6.5. Does anyone have insight into how to properly manage opacity with complex shapes in QML? Is there a specific best practice to follow, or is this a known scenario in the current version?