import QtQuick 2.14 import QtQuick.Window 2.14 import QtQuick.Layouts 1.14 import QtGraphicalEffects 1.14 import QtQuick.Controls 2.14 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") Rectangle { z: 10 id: rect anchors.centerIn: parent; width: parent.width * .8; height: parent.height * .1 color: "#33aa0000" visible: true radius: 10 RowLayout { anchors.fill: parent spacing: 0 Repeater { model: 3 Button { Layout.fillHeight: true Layout.fillWidth: true background: Rectangle { color: "#ddd" Rectangle { anchors { left: parent.left right: parent.right bottom: parent.bottom } height: 5 color: "blue" } } onClicked: { print( index ); } } } } } Rectangle { id: mask anchors.fill: rect radius: 10 visible: false } OpacityMask { source: rect maskSource: mask anchors.fill: rect } }
Обсуждают сегодня