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

No working API to lock screen orientation for Meego

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 1.1.2
    • System Information
    • None

    Description

      I need to lock my app into portrait mode. But the only Qt API that I can find,
      does not work.

      On Symbian with Qt >= 4.7.2 the following works:
      QWidget::setAttribute(Qt::WA_LockPortraitOrientation)

      There is also:
      Qt::WA_LockLandscapeOrientation
      Qt::WA_AutoOrientation

      If I use Qt Creator from MeeGo SDK 1.2 and use the QML/C++ wizard, it will
      create code that uses the above API.

      ===========================================================

      EXACT STEPS LEADING TO PROBLEM:
      ===========================================================
      1. Call: mainwin->setAttribute(Qt::WA_LockPortraitOrientation)
      2. Hold the device in landscape mode

      EXPECTED OUTCOME:
      The app is displayed in portrait mode, regardless of the devices physical
      orientation.

      ACTUAL OUTCOME:
      The app is displayed in landscape mode

      There is related bug reported at https://bugs.meego.com/show_bug.cgi?id=17200

      USER IMPACT:
      No portrait or landscape only apps

      REPRODUCIBILITY:
      Always

      Attachments

        Activity

          People

            cristiano cristiano di flora
            shenghua Shenghua Liu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: