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: Andy Nichols <andy.nichols@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
024c841415
commit
a07530d606
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user