Details
-
Bug
-
Resolution: Done
-
P4: Low
-
4.7.1
-
None
-
WinXp, VS05, x32
-
15c14584199dc43e4a309fc331f3144009008128
Description
Compare of the Lines in QGraphicsView.cpp: 2169 and in QGraphicsScene.cpp: 1086.
I modified the second Line to see the different better.
return d->scene->items(xinv.mapRect(QRectF(pos.x(), pos.y(), 1, 1)) , Qt::IntersectsItemShape, Qt::DescendingOrder, viewportTransform());
return q->items(QRect(scenePos, QSizeF(1, 1)) , Qt::IntersectsItemShape, Qt::DescendingOrder, view->viewportTransform());
First Line (qgraphicsview) passes the constant size(1,1) throught the matrix, which scales selection area (in this case selection point) and second line (qgraphicsscene) had a selection area with size (1,1) without transformation.
This cause to select a bigger area if the view is scaled.
Attachments
For Gerrit Dashboard: QTBUG-17517 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
16400,6 | Fix incorrect QGraphicsItem tooltips | 4.8 | qt/qt | Status: ABANDONED | -2 | 0 |
17424,1 | Revert "Don't rely on mapFromGlobal in QGraphicsScenePrivate::itemsAtPosition." | 4.8 | qt/qt | Status: MERGED | +2 | 0 |
17426,4 | Add additional QGraphicsView tests for regression | 4.8 | qt/qt | Status: MERGED | +2 | 0 |
18122,1 | Revert "Don't rely on mapFromGlobal in QGraphicsScenePrivate::itemsAtPosition." | master | qt/qtbase | Status: MERGED | +2 | 0 |
18123,1 | Add additional QGraphicsView tests for regression | master | qt/qtbase | Status: MERGED | +2 | 0 |