In QML, how can I prevent a child element from inheriting the opacity from its parent? I want to set different opacity values for the parent and it\'s child element.
You can't. Items opacity value is relative to their parents one, so if you code something like
Rectangle { color: "red" opacity: 0.5 width: 200; height: 100 Rectangle { color: "blue" opacity: 1 width: 100; height: 100 } }
You will see that the two rectangles have the same opacity.