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

Inconsistent Menu behavior difference between Microsoft and Qt

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • a78d66743171557d79b16c08be775e3ac15bb4ef (qt/qtbase/5.15)

    Description

      Menus beside a button with a menu pop up never over the mouse cursor under MS Software.

      In Qt a menu from a QToolButton appears on "strange" positions.
      Sometimes the menu pops up and the mouse is somewhere in the middle of the
      menu. If the menu is placed where the current mouse cursor is selecting an
      item at the same time it opens up, you already select this item when you
      release the mouse. The menu gets closed immediately and triggered the QAction.
      You can reproduce if you move you mouse 1 pixel while clicking and releasing
      the toolbutton menu-button.

      Not able to reproduce this behavior with any widget in MS software. The menu is
      always placed outside the mouse so that a selection needs another user
      movement of the mouse after opening the menu.

      Steps to reproduce:

      • Move app to bottom right screen corner
      • Open toolbutton menu, ESC out, repeat
      • Observe menu is over mouse (which does not happen when there is enough space)

      Attachments

        1. testgui.zip
          2 kB
        2. 2019-11-07 at 10-38-01 (2).mp4
          3.45 MB
        3. qtbug78966_log.txt
          1 kB
        4. qtbug78966.zip
          5 kB
        5. qtbug78966_diag.diff
          6 kB

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              jpalokg2 Jukka Palokangas
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: