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

Screen rotation causes wrong menu position

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.1.1, 6.2.0 Alpha
    • Fix Version/s: 6.2.0 Beta3, 6.3.0 Alpha
    • Component/s: GUI: Menus
    • Labels:
      None
    • Platform/s:
      Linux/X11
    • Commits:
      a7b1aaa98be60c739d11f1a7d30440a70c6ea77a (qt/qtbase/dev) 189f362533648c5ebc2fc1137ef46c8cedc49044 (qt/qtbase/6.2)

      Description

      On devices that automatically rotate the screen, or use the following script to delay the rotation of the screen.

       

      sleep 5
      xrandr -o right

      Display the menu and rotate the device to change the orientation of the screen. The menu position is displayed incorrectly
      When using a script, run the script first, and then display the menu. When the screen orientation is changed, the menu position is wrong. This is true in Kwin, ICE, and gnome.

      There are multiple popup windows in https://github.com/qt/qtbase/blob/dev/src/widgets/kernel/qapplication.cpp#L1623, but they are not called when the screen is rotated.

      Although this is not commonly used, it should be a BUG. The wrong menu position is too ugly.

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            tanghaixiang haixiang tang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes