daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest May 27th, 2012 17 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top