Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.0, 6.2.1, 6.2.2
-
-
0c7b0a4306 (qt/qtdeclarative/dev) d4c31ec0cd (qt/qtdeclarative/6.2) 66d6c7ec01 (qt/qtdeclarative/6.3) d4c31ec0cd (qt/tqtc-qtdeclarative/6.2)
Description
In the following example, we placed a button on an element with a HoverHandler.
In Qt 5.15, the hovered property of the HoverHandler was also true, when hovering the button. In Qt 6.2.1, the hovered becomes false when hovering the button. In this example, the button will flicker, even when the cursor is hovering the Rectangle all the time.
import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.5 Window { id: window width: 640 height: 480 visible: true Rectangle { width: 300 height: 300 color: "orange" Text { anchors.centerIn: parent text: "hover here" } Button { visible: hoverHandler.hovered text: "click" } HoverHandler { id: hoverHandler } } }
Attachments
Issue Links
- is duplicated by
-
QTBUG-98940 Button inside MouseArea does not pass mouse hover events
- Closed
- relates to
-
QTBUG-95726 [REG 5.15.2-6.2.0] MouseArea loses hover when cursor is inside of nested MouseArea
- Closed
-
QTBUG-98940 Button inside MouseArea does not pass mouse hover events
- Closed
For Gerrit Dashboard: QTBUG-98850 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
400736,9 | QQuickControl: let Control reject hover events | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
403465,2 | QQuickControl: let Control reject hover events | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
403466,2 | QQuickControl: let Control reject hover events | 6.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
404397,2 | QQuickControl: let Control reject hover events | 6.3.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |