Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.1, 5.15.2, 6.0.0
-
ba1246c543118515ea244787f3d7f9c1133ccf0f (qt/qtdeclarative/dev) f853db24bd29343efa8694008a931c95c37c2a80 (qt/qtdeclarative/6.1) 4f2cc0d258244c05d5b5419ce98fdeebe847caf9 (qt/qtdeclarative/6.0) 4a2548e312 (qt/tqtc-qtdeclarative/5.15-opensource)
Description
Toggling MouseArea visibility while mouse cursor is hovered on top of it seems to cause containsMouse property to get incorrectly "true" value when mouse cursor is later moved away from the MouseArea.
Steps to reproduce the issue:
- Run the attached project
- Wait for the MouseArea visibility to be toggled false by the timer (2sec interval)
- Move mouse cursor on top of the MouseArea (=Anywhere on the window) before visibility is toggled back to true and keep the cursor on top of the window until MouseArea visibility is true
- Move mouse cursor away from the window while the visibility is still true and keep it outside the window.
Note: until now the containsMouse value is correct
- The next time MouseArea visibility is turned "true" by the timer the containsMouse value will also be true even though the mouse cursor is no longer on top of the MouseArea. The containsMouse will keep toggling with the visibility.
Attachments
For Gerrit Dashboard: QTBUG-87197 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
329889,8 | MouseArea: fix containsMouse behavior during visibility changes | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
334373,1 | QTest::mouseMove: Don't interpret a position 0, 0 as uninitialized | dev | qt/qtbase | Status: ABANDONED | +2 | 0 |
334396,2 | MouseArea: fix containsMouse behavior during visibility changes | 6.1 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
334397,2 | MouseArea: fix containsMouse behavior during visibility changes | 6.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
334398,3 | MouseArea: fix containsMouse behavior during visibility changes | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |