Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 1.1
- Rectangle {
- color: 'red'
- width: 500
- height: width
- function doSomething() {
- console.log('hey ho');
- }
- Rectangle {
- color: 'blue'
- anchors.centerIn: parent
- width: 400
- height: width
- MouseArea {
- anchors.fill: parent
- onClicked: doSomething();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement