Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
- import QtQuick 1.1
- Rectangle {
- width: 360
- height: 360
- Text {
- text: qsTr("Hello World")
- anchors.centerIn: parent
- }
- MouseArea {
- anchors.fill: parent
- onClicked: {
- if (rect.color == "#ff0000") {
- console.log("red")
- }
- }
- }
- Rectangle {
- id: rect
- color: "#ff0000"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement