- 
    
Bug
 - 
    Resolution: Duplicate
 - 
    
P1: Critical
 - 
    5.7.0, 5.7.1
 - 
    None
 - 
    Mac OS 10.11.6
 
Clicking the middle or right button of a Wacom pen generate many mixed middle and right press and release events.
Attached minimalistic example produces following output for Qt 5.6 (expected behavior):
Left click:
press left
release left
Right click:
press right
release right
Middle click:
press mid
release mid
For Qt 5.7, the same application produces:
Left click:
press left
release left
Right click:
press mid
press right
release right
press right
release right
press right
release right
Middle click:
press right
release right
press mid
qt.qpa.cocoa.window: QNSView mouseDragged: Internal mouse button tracking invalid (missing Qt::LeftButton)
press right
release right
qt.qpa.cocoa.window: QNSView mouseDragged: Internal mouse button tracking invalid (missing Qt::LeftButton)
press right
release right
qt.qpa.cocoa.window: QNSView mouseDragged: Internal mouse button tracking invalid (missing Qt::LeftButton)
press right
release right
qt.qpa.cocoa.window: QNSView mouseDragged: Internal mouse button tracking invalid (missing Qt::LeftButton)
press right
release right
qt.qpa.cocoa.window: QNSView mouseDragged: Internal mouse button tracking invalid (missing Qt::LeftButton)
press right
release right
release mid
- duplicates
 - 
                    
QTBUG-54399 [Reg: 5.6 -> 5.7] Wrong position in mousePressEvent and mouseMoveEvent for Wacom pen tablets
-         
 - Closed
 
 -         
 
| For Gerrit Dashboard: QTBUG-54160 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 174408,2 | Cocoa integration - remove erroneous warning | 5.7 | qt/qtbase | Status: MERGED | +2 | 0 | 
| 179214,4 | Cocoa: Send correct mouse buttons for tablets | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 | 
| 180717,4 | Cocoa: make "Send correct mouse buttons for tablets" optional | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 | 
| 180719,1 | WIP Cocoa: Send correct mouse buttons for tablets | 5.7 | qt/qtbase | Status: DEFERRED | -2 | 0 | 
| 188594,1 | Cocoa: Send correct mouse buttons for tablets | 5.9 | qt/qtbase | Status: ABANDONED | 0 | 0 |