The rect of an empty widget (i.e. 0 width/height) will, after adjusting by -1, be invalid as it will have a width/height of -1. In turn, calling contains(p) on that rect can return true even though the rect is empty. Fixes: QTBUG-131001 Pick-to: 6.8.1 Change-Id: I604f5942589f1c1079cae90bd0d3b104344d2c55 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: David Faure <david.faure@kdab.com> (cherry picked from commit 1731d8af741a0a6cc6cd293be4aef52103d0899b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| BLACKLIST | ||
| CMakeLists.txt | ||
| geometry-fullscreen.dat | ||
| geometry-maximized.dat | ||
| geometry.dat | ||
| hellotr_la.qm | ||
| tst_qwidget.cpp | ||