QML Opacity Inheritance

前端 未结 9 1985
刺人心
刺人心 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:23

    I don't think its possible. you have to make two element sibling and changes its opacity as you wish.

提交回复
热议问题