Guest User

OnClick

a guest
Nov 21st, 2011
541
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import QtQuick 1.0
  2. import Qt3D 1.0
  3.  
  4. Rectangle {
  5.     color: "black"
  6.     width: 400
  7.     height: 600
  8.  
  9.     Viewport {
  10.         anchors.fill: parent
  11.         MouseArea {
  12.                     anchors.fill: parent
  13.                     onClicked: {
  14.                         Qt.quit();
  15.                     }
  16.                 }
  17.         camera: Camera {
  18.                     id: viewCamera
  19.                     eye: Qt.vector3d(15,10,40)
  20.                     center: Qt.vector3d(-2,10,0)
  21.                 }
  22.  
  23.         Mesh { id: refrigirator; source: "refr.3ds" }
  24.         Mesh { id: ufo; source: "ufo.3ds" }
  25.         Mesh { id: bottom_door; source: "door.3ds" }
  26.  
  27.         Item3D { mesh: refrigirator }
  28.         Item3D { mesh: ufo;}
  29.         Item3D { mesh: bottom_door; }
  30.     }
  31. }
  32.  
RAW Paste Data