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

Usage of QOrientationSensor fails in device

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • 1.0.1
    • 1.0.0
    • Sensors
    • None

      Creating sensor with QOrientationSensor fails with KERN EXEC 3 at symbian S60 5th N97 device. Compass cannot be created, you have to use QSensor with QByteArray orientation("QOrientationSensor") instead and when reading data do static_cast QSensorReading to QOrientationReading.
      Here is code snippet to clarify issue:

      QSensor* m_orientation;
      QSensorReading* m_currentOrientationReading;
      m_orientation = new QSensor("QQOrientationSensor", this);

      QOrientationReading reading = static_cast<QOrientationReading>(m_currentOrientationReading);
      reading->orientation()

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

            lramsay Lincoln Ramsay (closed Nokia identity) (Inactive)
            passeli Pasi Petäjäjärvi (Private) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes