Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.1, 5.0.0
-
None
-
All
-
8b66982ec7b4b5d2071931c288973dce73dc9875
Description
The following example reproduces the problem. In top pathview, when flicked/dragged, it can be observed that the items wobble up and down along the path in the y direction. This happens when the size of the item is odd.
import QtQuick 1.0 Item { width: 1100 height: 700 ListModel{ id: myModel } Component{ id: myDelegate Rectangle{ height: 199 width: 199 color: "red" } } PathView { id: view1 height: 230 anchors.left: parent.left anchors.right: parent.right anchors.top: parent.top highlightRangeMode: PathView.StrictlyEnforceRange model: 5 delegate: myDelegate path: Path { startX: 0.0 startY: 100.0 PathLine { x: 1000.0; y: 100.0 } } } PathView { id: view2 height: 230 anchors.left: parent.left anchors.right: parent.right anchors.top: view1.bottom model: 5 delegate: Rectangle { height: 199 width: 199 color: "black" } path: Path { startX: 0 startY: 100 PathLine { x: 1000; y: 100.000000001 /*workaround by adding a fractional part*/ } } } PathView { id: view3 height: 230 anchors.left: parent.left anchors.right: parent.right anchors.top: view2.bottom model: 5 delegate: Rectangle { height: 200 /*workaround by making sizes round to base 10*/ width: 200 color: "black" } path: Path { startX: 0 startY: 100 PathLine { x: 1000; y: 100 } } } }
Attachments
Issue Links
- depends on
-
QTBUG-18133 QBezier returns points outside of its bounds
- Closed
For Gerrit Dashboard: QTBUG-17007 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
2467,1 | Use more numerically robust algorithm to compute QBezier::pointAt(). | master | qt/qtbase | Status: MERGED | -1 | 0 |