diff options
| author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2024-10-28 15:54:19 +0100 |
|---|---|---|
| committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2024-10-29 17:42:47 +0100 |
| commit | 0cba6115605f586109a9b167a7d220670c5cda03 (patch) | |
| tree | 2af59cc17c42c0d60b80e9e7944d937a6a9503a5 /src/corelib/kernel/qmetaobjectbuilder.cpp | |
| parent | d24c8ba5f7f233c9d5e5390f126a7135ba499d9a (diff) | |
QGraphicsView: Fix clipping bug for rectangular custom items
If an item's shape() path described a rectangle not starting at the
top left corner, the code setting up clipping would correctly identify
and attempt to use it as a rectangle. However the conversion to a
QRectF would produce a non-normalized rectangle, which could lead to
unexpected clipping results. Fix by ensuring the rect is normalized.
Fixes: QTBUG-128488
Pick-to: 6.8
Change-Id: Icbd17a95dde46a1969994f5eac021ac7b8ac5689
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmetaobjectbuilder.cpp')
0 files changed, 0 insertions, 0 deletions
