import QtQuick 2.4 import QtQuick.Controls 1.4 import QtQuick.Controls.Styles 1.4 import QtQuick.Window 2.2 Window { visible: true MainForm { anchors.fill: parent mouseArea.onClicked: { Qt.quit(); } Rectangle{ 320 height: 480 Rectangle{ x:20 y:20 150 height: 100 color:"#000080" z:0.5 } Rectangle{ x:100 y:70 100 height: 100 color: "#00c000" z:1 opacity: 0.6 } } } }