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

if hoverring on a submenu in QMenu, we will get Leave events

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.5
    • GUI: Menus
    • None
    • Linux/X11

    Description

      In a QMenu there are submenus and actions. If hovering on a submenu item, the submenu will be shown, and we will get leave events from almost all widgets, and not any new enter event. What expected is, as long as the mouse is inside the menu, no leave events should be raised.

      Small example code is attached. The dock widget contains a menu. The central widget of the main window shows all Enter and Leave events of the qApp.

      How to repeat:

      1. move mouse into the dock widget on the left, we see Enter events in the plain text widget
      2. hover mouse on submenu item 'menu2', the submenu will be drawn, and we will see theĀ  QEvent::Leave events in the plain text widget. (Remark: no need to hover on 'action2')

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            wang-in Tianyang Wang
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes