summaryrefslogtreecommitdiffstats
path: root/examples/opengl/threadedqopenglwidget
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 16:18:38 +0100
commiteedcda282fa47d2e4ae52a432bc74c14599311e3 (patch)
tree74e5f3ad505a828779e1a8bdf2829e59f4e3d027 /examples/opengl/threadedqopenglwidget
parent742e79312fc98711f68749937d0db433d961f546 (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')
0 files changed, 0 insertions, 0 deletions