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

axesOrientationMode: Sensor.AutomaticOrientation doesn't work on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.12, 5.13
    • Sensors
    • None
    • Android
    • 5
    • Team 2 Foundation_Sprint 42, Team 2 Foundation_Sprint 43

    Description

       

         Accelerometer {
              active: true
              accelerationMode: Accelerometer.Combined
              axesOrientationMode: Sensor.AutomaticOrientation
              onReadingChanged: console.log(reading.x)
              onCurrentOrientationChanged: console.log(currentOrientation)
         }

      According to https://doc-snapshots.qt.io/qt5-5.11/qaccelerometerreading.html#details X axis should be positive when tilting the phone to the right and negative when tilting it to the left.

      If I rotate the phone by 180 degrees, the X values are inverted.

      If I put the phone in landscape mode, it's even worse, because the X becomes Y and vice-versa.

       

      Attachments

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

        Activity

          People

            tamasmartinec Tamas Martinec
            taipan BogDan Vatra
            Vladimir Minenko Vladimir Minenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes