Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94013

Incorrect Camera orientation and position on Surface Tablet

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.4
    • Multimedia
    • Windows Surface Tablet
    • Windows

    Description

      Neither of Qt Camera Examples can show camera rotation correctly on Windows Surface tablet.
      https://doc.qt.io/qt-5/qtmultimedia-multimediawidgets-camera-example.html
      https://doc.qt.io/archives/qt-5.11/qtmultimedia-multimedia-declarative-camera-example.html

      QCameraInfo::orientation() / QML camera.orientation always returns 0.
      Also QCameraInfo::position / camera.position returns 0 (QCamera::UnspecifiedPosition) no matter which camera is chosen.

      Sample code is attached ( qtbug94013-declarative-camera.zip )
      Qt declarative-camera example which these lines were added to . Just run and rotate the screen.

      onOrientationChanged: { 
                  console.log("camera.orientation :", camera.orientation)
                  console.log("camera.position:", camera.position)
                  console.log("screen orientation :", Screen.orientation)
              }
      

      The output of turning to 90 -> 180 -> 270 -> 0

      qml: camera.orientation : 0 
      qml: camera.position: 0
      qml: screen orientation : 1
      
      qml: camera.orientation : 0
      qml: camera.position: 0
      qml: screen orientation : 2
      
      qml: camera.orientation : 0
      qml: camera.position: 0
      qml: screen orientation : 1
      
      qml: camera.orientation : 0
      qml: camera.position: 0
      qml: screen orientation : 2
      
      

      Both front and back camera provides the same output.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            johanseg Jøger Hansegård
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes