Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.7.0, 5.9.4, 5.10.1
-
None
-
OSX El Capitan (10.11.6) with Qt 5.7.0, Qt 5.9.4 and Qt 5.10.1
Ubuntu Gnome 16.04 with Qt 5.7.0 (Qt binary release) and Qt 5.5.1 (Ubuntu package)
Logitech M325 Wireless Mouse and MacBook Pro trackpad
Description
What Was Done:
- Open up a Terminal
- Build and run testMenu
- Click on a Terminal window to give Terminal focus
- Right-click on testMenu window
- Move mouse away from the context menu that pops up.
Notes:
- The behaviour does not trigger if you move the mouse into the context menu, rather than away from it.
- The behaviour also does not trigger if testMenu already has focus when you right-click on it.
What was seen:
OSX
The context menu disappears due to a left-mouse press event. This is printed to the terminal:
MyWidget mousePress Right
MyMenu mousePress
MyWidget mousePress Left
MyWidget mouseMove Left
MyWidget mouseRelease Left
Ubuntu
The context menu remains visible. This is printed to the terminal:
MyWidget mousePress Right
What was expected:
The Ubuntu behaviour appears correct, while the OSX behaviour is wrong. The context menu should remain open. No mouse events should be emitted for the left mouse button, because it has not been pressed.