qml 窗口半透明
有这2中办法,第一种是设置opacity,在某种情况下可能会达不到期望值,因为设置了之后
它的子控件也会受到影响,
第二种办法就是通过color进行设置,比如color:"#AA000000",这样设置了之后它的透明度
只会影响自己,不会影响子控件,
可以根据实际情况看使用哪种
opacity : real
This property holds the opacity of the item. Opacity is specified as a number between 0.0 (fully transparent) and 1.0 (fully opaque). The default value is 1.0.
When this property is set, the specified opacity is also applied individually to child items. This may have an unintended effect in some circumstances. For example in the second set of rectangles below, the red rectangle has specified an opacity of 0.5, which affects the opacity of its blue child rectangle even though the child has not specified an opacity.