Unsolved Rotating camera on phone weird behavior
-
My code is as follows
Camera { id: camera focus { focusMode: CameraFocus.FocusContinuous focusPointMode: CameraFocus.FocusPointAuto } } VideoOutput { source: camera }
When I rotate the camera, it shows a 90 degree extra rotation, how to fix this?
-
QML is a declarative language, meaning you have to declare everything. Your code shows no mention of orientation, be it portrait or landscape, which with a rotational application like 'camera' needs to be defined. The device doesn't know otherwise.
Perhaps there is the required info to be found in this post here;
https://forum.qt.io/topic/76287/how-to-set-screen-orientation-on-specific-qml-how-to-rotate-all-specific-qml-elements-on-screen/8