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

Setting testAttribute(Qt::WA_UnderMouse) should consider that the control is already under the mouse

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.15, 6.2
    • None
    • Ubuntu 19.04 Deepin
    • Linux/X11

    Description

      Steps to reproduce:
      1. Move the mouse to the button, the value obtained by testAttribute(Qt::WA_UnderMouse) is true;
      2. Use the timer to modify the WA_UnderMouse value of this widget to false;
      3. Click the button again, the value of WA_UnderMouse is still false, this time the button is under the mouse;   see error.mp   and  demo
      4. When the mouse moves and enters the button again, the value of WA_UnderMouse is true

      expect:
      As long as the widget is under the mouse, the value of WA_UnderMouse is always true.

      Attachments

        1. ButtonHover.zip
          3 kB
        2. error.mp4
          1.39 MB
        For Gerrit Dashboard: QTBUG-95060
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            kingderzhang kingderzhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes