qt6-bb10/qtdeclarative/tests/auto/quick/qquickmousearea/data/simple.qml

14 lines
232 B
QML

import QtQuick 2.0
Rectangle {
id: whiteRect
width: 200
height: 200
color: ma.pressed ? "lightsteelblue" : "white"
MouseArea {
id: ma
objectName: "mousearea"
anchors.fill: parent
}
}