QML Opacity Inheritance

前端 未结 9 1933
刺人心
刺人心 2020-12-31 04:12

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.

9条回答
  •  别那么骄傲
    2020-12-31 04:36

    I think, one way would be to use semi transparent colors as described here instead of opacity.

    e.g. using quad color code like #800000FF for semi transparent blue.

提交回复
热议问题