How to make a particular area of qml view transparent
Solved
QML and Qt Quick
-
There is a qml file like this:
Item {
width: 800
height: 600Image { id: background width: 800 height: 600 source: "qrc:/resorces/background.png" } Rectangle { id: transframe x: 500 y: 200 width: 200 height: 100 }
}
How to make the area of transframe transparent, then I can see the grafic under background.
-
hello @SoyFlutter, this can help you http://ebanshi.cc/questions/4494981/need-to-change-color-of-an-svg-image-in-qml
-
I asked the same question in another place, and got the answer.
The link is https://stackoverflow.com/questions/47864841/how-to-make-a-particular-area-of-qml-view-transparent