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

Make it possible to lock the screen orientation dynamically

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.13, 5.2.1, 5.3.0 Beta1, 5.3.1, 6.5.0
    • GUI: Window management
    • Android, WinRT, Windows 8.1

       

    • Android, iOS/tvOS/watchOS
    • c0f6d10bc (dev), bc014d5fc (dev)
    • 2023wk20FOQtforAndroid, 2023wk22FOQtforAndroid, 2023wk24FOQtforAndroid, 2023wk26FOQtforAndroid, 2023wk28FOQtforAndroid, 2023wk30FOQtforAndroid, 2023wk32FOQtforAndroid, 2023wk34FOQtforAndroid, 2023wk36FOQtforAndroid, 2023wk38FOQtforAndroid, 2023wk40FOQtforAndroid, 2023wk42FOQtforAndroid, 2023wk44FOQtforAndroid

    Description

      At the moment the only way to lock the orientation with Android devices is to modify the Manifest.xml, but the problem is that it is not dynamic.

      QWindow has contentOrientation property, but it is only for getting the orientation, not for setting it.

      So, an API that provides means to set/lock the orientation dynamically is requested.

      Request is to have api for example to QML Screen to lock screen orientation.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-38576
          # Subject Branch Project Status CR V

          Activity

            People

              vhilshei Volker Hilsheimer
              qtcomsupport Qt Support
              Votes:
              25 Vote for this issue
              Watchers:
              31 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes