Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.0
- Rectangle {
- id: square
- width: 200
- height: 200
- color: "red"
- MouseArea {
- anchors.fill: parent
- onClicked: {
- square.color = "blue"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement