Make declarative-camera example show frames in the correct orientation.
authorYoann Lopes <yoann.lopes@digia.com>
Fri, 7 Mar 2014 13:19:40 +0000 (14:19 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 7 Mar 2014 13:59:40 +0000 (14:59 +0100)
VideoOutput's autoOrientation property should be set to true in order
to always have the video frames in the same orientation as the screen.

Change-Id: I76ebb2979070e52d4f62972d63896eada1a208be
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
examples/multimedia/declarative-camera/declarative-camera.qml

index 3e7ed4c..b22d5cf 100644 (file)
@@ -39,7 +39,7 @@
 ****************************************************************************/
 
 import QtQuick 2.0
-import QtMultimedia 5.0
+import QtMultimedia 5.2
 
 Rectangle {
     id : cameraUI
@@ -129,6 +129,7 @@ Rectangle {
         height: parent.height
 
         source: camera
+        autoOrientation: true
     }
 
     PhotoCaptureControls {