Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.6, 6.7.2
Description
The DragEvent x and y coordinates are declared as real but are incorrectly rounded to the nearest integer when the scale of an Item is set to a real value, e.g. 1.1. For example, a Rectangle with a scale of 1.1 which contains a DropArea, the x and y coordinates of the DragEvent when a drag enters the bounds of the DropArea are rounded to the nearest integer.
To reproduce the issue, run the attached example project:
- The scale of the rectangles is set to 1.1 (can be changed via the slider)
- Enter with the cursor on the blue rectangle containing a MouseArea. Observed/Expected behavior: console prints the real value of the mouse coordinates.
- Drag the green rectangle onto the red rectangle containing a DropArea. Observed behavior: console prints the DragEvent coordinates as rounded integers. Expected behavior: console prints the real value of the DragEvent coordinates.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-127648 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
583106,1 | QDrag{Move,Enter}Event: add a note to use FP types in Qt 7 | dev | qt/qtbase | Status: NEW | -1 | 0 |
601402,8 | QDrag{Move|Enter}Event: Construct with QPointF not QPoint | dev | qt/qtbase | Status: NEW | 0 | -1 |
601576,1 | Pass QPointF coordinates to DnD event constructors | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |