summaryrefslogtreecommitdiffstats
path: root/examples/opengl/threadedqopenglwidget/glwidget.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-02-20 17:20:08 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-02-27 19:26:05 +0100
commit519e3963fad0761bac5629b1f6eabc58060265c0 (patch)
tree8de722e8e9eb4178e548d83facf9ca981c324b0b /examples/opengl/threadedqopenglwidget/glwidget.cpp
parentcd2d626b8b5c547aeec54141a3d1ee28d37ff16d (diff)
QtGui: Use single precision for mouseMove detection
QGuiApplication::lastCursorPosition is a QPointF, and (at least on macOS) compares always different from the QPointF stored in the event. This might be due to the translation from system coordinates to QPointF introducing noise. The result is that even a simple button press causes mouseMove events to be delivered. To prevent this event noise, overload equality operators for the special QLastCursorPosition type when comparing with QPointF to explicitly use single precision comparison. Pick-to: 6.5 6.4 6.2 Fixes: QTBUG-111170 Change-Id: I82ea23ac9f4fa80c55c9c5c742527dd7ee74fd99 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples/opengl/threadedqopenglwidget/glwidget.cpp')
0 files changed, 0 insertions, 0 deletions