Advertisement
Guest User

Untitled

a guest
Feb 17th, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
  2. import QtQuick 1.1
  3.  
  4. Rectangle {
  5. width: 360
  6. height: 360
  7. Text {
  8. text: qsTr("Hello World")
  9. anchors.centerIn: parent
  10. }
  11. MouseArea {
  12. anchors.fill: parent
  13. onClicked: {
  14. if (rect.color == "#ff0000") {
  15. console.log("red")
  16. }
  17. }
  18. }
  19.  
  20. Rectangle {
  21. id: rect
  22. color: "#ff0000"
  23. }
  24.  
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement