Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
5.12, 5.15, 6.6.2, 6.7.0 RC2
-
Linux
Description
When a QPushButton or QToolButton is pressed, moved outside the button, and released, it receives MouseButtonRelease, Leave, and Release events. However, if a menu is set for the button using the setMenu method, clicking the button triggers the menu to appear, and if the button is pressed again, causing the menu to disappear, releasing the button outside the control or application, the button is not receiving any events.
This problem frequently occurs on touchscreens, resulting in a poor user experience.
The attached demo can reproduce this issue.
The same to QTBUG-119864. But 119864 just solved the problem when using mouse.
If we use touch instead of a mouse, the problem still exists.