SHARE
TWEET

Untitled

a guest Jan 26th, 2014 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import QtQuick 2.0
  2.  
  3. Rectangle {
  4.     width: 360
  5.     height: 360
  6.     Text {
  7.         anchors.centerIn: parent
  8.         text: "Hello World"
  9.     }
  10.     MouseArea {
  11.         anchors.fill: parent
  12.         drag.target: parent
  13.         drag.filterChildren: true
  14.  
  15.         Rectangle {
  16.             id: hereworks
  17.             color:"yellow"
  18.             width: 200
  19.             height: 150
  20.         }
  21.         Text {
  22.             id: heredoesnt
  23.             anchors.top: hereworks.bottom
  24.             text: "TRY DRAGGING FROM HERE"
  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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top