Advertisement
Guest User

Untitled

a guest
May 27th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import QtQuick 1.1
  2.  
  3. Rectangle {
  4. color: 'red'
  5.  
  6. width: 500
  7. height: width
  8.  
  9. function doSomething() {
  10. console.log('hey ho');
  11. }
  12.  
  13. Rectangle {
  14. color: 'blue'
  15.  
  16. anchors.centerIn: parent
  17.  
  18. width: 400
  19. height: width
  20.  
  21. MouseArea {
  22. anchors.fill: parent
  23.  
  24. onClicked: doSomething();
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement