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

axesOrientationMode: Sensor.AutomaticOrientation doesn't work on Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12, 5.13
    • Fix Version/s: None
    • Component/s: Sensors
    • Labels:
      None
    • Platform/s:
      Android
    • Story Points:
      5
    • Sprint:
      Team 2 Foundation_Sprint 42

      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

            Assignee:
            tamasmartinec Tamas Martinec
            Reporter:
            taipan BogDan Vatra
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes