Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

No Opacity on top of Opacity

$
0
0
Hi, The opacity of an item will always be passed down to its children. Your button must be put outside your half-opaque rectangle. Do something like this: Rectangle {     id: containerRectangle     width: 800     height: 600     color: "transparent"       Rectangle {         id: realRectangle         anchors.fill: parent         color: "green"         opacity: 0.4     }       Button {         anchors.centerIn: parent         text: "Click Me!"     } }

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images