Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
6.2.6, 6.3.2, 6.4.0
Description
When enabled property of MenuItem is set to false and this MenuItem is clicked, the click propagates through. Please find reproducer attached. Last known good versions are Qt 6.2.4 and 6.3.0.
Steps to reproduce:
1) Build the example attached with an affected version.
2) With mouse, left click the window to open the menu
3) With mouse, left click the grayed out 'Active' Menu Item.
This causes the TapHandler to trigger again and it reopens the menu. "On tapped:" Is printed again in the application output.
Reproducible with Windows, Linux and macOS. Issue did not reproduce with touch screen. This is a regression between Qt 6.3.0 and 6.3.1 (and between 6.2.4 and 6.2.5 in Qt 6.2 branch).
As a workaround, setting a Rectangle covered by MouseArea can be used as a background property of Menu in order to catch propagated events. This should not be needed however.
Attachments
Issue Links
- duplicates
-
QTBUG-107014 [REG 6.2.4 -> 6.2.5] Items covered by Popup receive mouse events
-
- Closed
-
- relates to
-
QTBUG-93649 Regression 5.15.3->6.0.0: Mouse Events not accepted on a MouseArea placed inside Popup::background
-
- Closed
-