summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydata.h
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2024-08-27 19:41:53 +0200
committerDavid Faure <david.faure@kdab.com>2024-08-30 18:39:36 +0200
commit40bde8a572bd8ed039d3f5a5ab99b281de7410bd (patch)
treed40d767b6238bfa36f2062dd283d2a7980729a8a /src/corelib/tools/qarraydata.h
parent2a10a679a17de2f2ec83f676198936fcaaaa8fad (diff)
QWidgetWindow: fix enter/leave events not sent due to fractional scaling
If widget A starts at y=0 and widget B starts at y=19, when the mouse moves from y=15 to y=18.6667, the code was doing childAt(p) with a rounded QPoint y=19 and finding B, but then the relative coord for B was set to -0.33333 so B wasn't under the mouse and didn't get an enter event (and since it's now the "last receiver", it doesn't get one later either when y is bigger). Add QWidget::childAt(QPointF) to fix this. Fixes: QTBUG-128391 Pick-to: 6.8 Change-Id: I76d4b711a8297648780bdd079eb67405ab12be14 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/tools/qarraydata.h')
0 files changed, 0 insertions, 0 deletions