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

Some popups (i.e.) menus are misplaced on gnome-shell

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      gnome-shell
      xdg-shell v6

      Description

      On gnome-shell, in some widget applications, if one menu is opened while another is being closed, it's positioned in the top-left corner instead of the expected position.

      This issue does not occur with the mainwindow or menus examples, but happens with qtcreator. Please add a comment if you know about a simpler example that exposes the issue.

      The issue happens when a QMenu is created without a parent, i.e. QWidget::parentWidget() == nullptr

      There are no such issues on weston or kwin. As far as I know, it only happens on gnome-shell.

        Attachments

        1. main.cpp
          0.6 kB
        2. menu.png
          menu.png
          9 kB

          Issue Links

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

            Activity

              People

              • Assignee:
                johanhelsing Johan Helsing
                Reporter:
                johanhelsing Johan Helsing
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There is 1 open Gerrit change