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

QMenu : two QEvents are sent for enterEvent and leaveEvent

    XMLWordPrintable

Details

    • 25c9a6c9b46e6ae58dcccdc3ba158d14945cbf33

    Description

      In Windows, moving the mouse over a QMenu will generate two enter events and moving the mouse out of the menu will send two leave events. Also,. with tear-off enabled, going over the tear-off bar will trigger the first enter event and moving on the menu will generate the second.

      If a sub menu is tear-off-able, moving the mouse over the tear-off bar (without entering the sub-menu) will generate a leave event on the first menu and will close the sub-menu.

      On Mac and Linux, no enter event is generated when going over the tear-off bar, the enter event is only generated when going over the sub-menu's items also triggering the a leave event for the main menu. Contrarily to Windows leaving the mouse over the tear-off bar will not close the sub-menu.

      Attached a simple test case

      Attachments

        1. MenuTest.zip
          2 kB
        2. MenuTest2.zip
          2 kB
        3. qtbug53068_dupl_enter_stack.txt
          16 kB
        4. qtbug53068_dupl_leave_stack.txt
          15 kB
        5. qtbug53068_xcb_log.txt
          3 kB
        6. qtbug53068.zip
          2 kB
        7. simple_test_case_app.zip
          805 kB

        Issue Links

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

          Activity

            People

              zaps166 Błażej Szczygieł
              badsingleton Felix Bourbonnais
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes