Rectangle { width: 360 height: 360 Rectangle{ color: "red" width: 200; height: 200; x:50; y:50; opacity: 0.3 Rectangle{ color:Qt.rgba(0,0,0,1); x:10; y:10; width: 100; height: 100; } }}
import QtQuick 1.1Rectangle { width: 360 height: 360 Rectangle{ color: Qt.rgba(1,0,0,0.3); width: 200; height: 200; x:50; y:50; Rectangle{ color:Qt.rgba(0,0,0,1); x:10; y:10; width: 100; height: 100; } }}