Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import QtQuick 1.0
  2. import QtMultimediaKit 1.1
  3.  
  4. Item {
  5. width: 500
  6. height: 500
  7.  
  8. Camera {
  9. id: camera
  10. anchors.fill: parent
  11.  
  12. property real angle: rotate.active ? rotate.angle.current*360 : angle
  13. transform: Rotation { origin.x: camera.width/2; origin.y: camera.height/2; axis { x: 0; y: 1; z: 0 } angle: camera.angle}
  14. }
  15.  
  16. RotateArea {
  17. id: rotate
  18.  
  19. anchors.fill: parent
  20.  
  21. subscription {
  22. touches.start: 2
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement