Commit a07530d6 authored by Yoann Lopes's avatar Yoann Lopes Committed by The Qt Project
Browse files

Make declarative-camera example show frames in the correct orientation.


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: default avatarAndy Nichols <andy.nichols@digia.com>
Showing with 2 additions and 1 deletion
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
****************************************************************************/ ****************************************************************************/
import QtQuick 2.0 import QtQuick 2.0
import QtMultimedia 5.0 import QtMultimedia 5.2
Rectangle { Rectangle {
id : cameraUI id : cameraUI
...@@ -129,6 +129,7 @@ Rectangle { ...@@ -129,6 +129,7 @@ Rectangle {
height: parent.height height: parent.height
source: camera source: camera
autoOrientation: true
} }
PhotoCaptureControls { PhotoCaptureControls {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment