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

Screen orientation changed not emitted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.7.0
    • Extras: Android
    • Android 4.4

    Description

      In manifestfile I set
      android:screenOrientation="sensorLandscape"

      Then in code i'm trying to handle orientationChanged() signal

      QScreen* screen = QGuiApplication::primaryScreen();
      screen->setOrientationUpdateMask(Qt::LandscapeOrientation|Qt::InvertedLandscapeOrientation|Qt::PortraitOrientation|Qt::InvertedPortraitOrientation);
      connect(screen, &QScreen::orientationChanged,[](Qt::ScreenOrientation){})

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            xakerok92 Aleksander Movchan
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes