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

Hover state of QCombobox has not been reset

    XMLWordPrintable

Details

    • Linux/Wayland
    • 73d35d3117 (qt/qtwayland/dev) 16aec91bd8 (qt/tqtc-qtwayland/5.15) bc11b00d0d (qt/qtwayland/6.2) 54fe6400cb (qt/qtwayland/6.3) bc11b00d0d (qt/tqtc-qtwayland/6.2) 54fe6400cb (qt/tqtc-qtwayland/6.3) bc11b00d0d (qt/qtwayland/6.2), ae380d343 (dev)

    Description

      Hover state of QCombobox has not been reset

       

      Click on the qcombobox to pop up a popup window, and click the left mouse button to make the popup window disappear. Repeat several times.

      qcombobox is still in hover state. This problem only exists in wayland

       

      I compared the logic under X11 and Wayland.

      X11: popup menu -> right click outside the menu -> menu disappears -> received XCB_LEAVE_NOTIFY and XCB_ENTER_NOTIFY

      At this point the control's WA_UnderMouse will be reset.

      Wayland: Pop-up menu -> right-click outside the menu -> menu disappears without any leave or enter events.

      The WA_UnderMouse state of Widget and QCombobox is not reset.

       

      I'm not sure if this is a window manager bug, I tested it under kwin and weston, both.

      Attachments

        1. hovertest.tar.gz
          1 kB
        2. hovertest.zip
          2 kB

        Issue Links

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

          Activity

            People

              liaqi Liang Qi
              tanghaixiang haixiang tang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: