Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1385

QOrientationSensor::reading() does return null before actuall rotation. (not possible to read inital orientation)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P3: Somewhat important
    • Resolution: Done
    • 1.1.x, 1.2.0
    • None
    • Sensors
    • None
    • Harmattan, Meego, Maemo 5

    Description

      As an developer I'd like to be able to read the orientation in which the device is rotated when my application is started.

      I think it should be possible by QOrientationSensor::reading()->orientation();

      Expected outcome:
      Current Orientation

      Actual outcome:
      OrientationReading is null. Only after you rotated the device once than it returns correct orientation.

      Attachments

        There are no Sub-Tasks for this issue.
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lramsay Lincoln Ramsay (closed Nokia identity) (Inactive)
            jeremias.bosch Jeremias Bosch
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes