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

On [Kylin x86] or [uos x86] machines, screen rotation signal does not trigger

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.15.10
    • GUI: Window management
    • None
    • 1. Ubuntu 20.04 x86 system.
      2. Kylin 2303 ARM system.
      3. Kylin 2303 x86 system.
      4. UOS 20 ARM system.
    • Linux/X11

    Description

      I am using Qt5.15 version on a Linux system and using the following code to respond to screen rotation actions:
      ```c++
      connect(QGuiApplication::primaryScreen(), &QScreen::orientationChanged, [](Qt::ScreenOrientation orientation)

      { qDebug() <<  orientation; }

      );
      ```
      But I found that after rotating the screen from 0 degrees to 90 degrees in the "Control Panel" of the operating system, the orientionChanged code in the above code can respond normally, and the return value is: PortraitOrientation, Turning from 90 degrees to 0 degrees, orientionChanged can respond normally, and the return value is: LandscapeOrientation。
      But when rotating from 90 degrees to 270 degrees or from 270 degrees to 90 degrees, the orientionChanged signal does not respond, which prevents me from capturing the rotation signal. To be precise, Inverted Portrait Orientation and Inverted Landscape Orientation have never been triggered.
      I have tested the following systems and found this issue:
      1. Ubuntu 20.04 x86 system.
      2. Kylin 2303 ARM system.
      3. Kylin 2303 x86 system.
      4. UOS 20 ARM system.

      Attachments

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

        Activity

          People

            liaqi Liang Qi
            qht Q HT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes