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

[REG 5.15.2-6.2.0] MouseArea loses hover when cursor is inside of nested MouseArea

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0, 6.2.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 10, MSVC 2019
    • Platform/s:
      All

      Description

      MouseArea loses hover when cursor is inside of nested MouseArea,
      It works as expected if nested MouseArea is a first-level child.

      MouseArea {
          hoverEnabled: true
      ... 
          MouseArea {
              hoverEnabled: true
          ...
          }
      ...
      }
      

      But it looses hover if nested MouseArea is "indirect" child, e.g.

      MouseArea {
          hoverEnabled: true
      ... 
          Rectangle {
          ...
              MouseArea {
                  hoverEnabled: true
              ...
              }
          ...
          }
      ...
      }
      

      Reproduces at least on Windows 10 with Qt 6.2.0 (MSVC 2019).
      Regression from Qt 5.15.2

      See attached example.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              studiosus Vladimir Belyavsky
              Votes:
              9 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There is 1 open Gerrit change