Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
4.8.0
-
None
Description
Please run this testcase:
import QtQuick 1.1 Rectangle { width: 360 height: 360 ListView { id: lv anchors.fill: parent anchors.bottomMargin: 50 spacing: 2 model: ListModel { ListElement { text: "A" } ListElement { text: "B" } ListElement { text: "C" } ListElement { text: "D" } } delegate: Text { text: " contentY: " + lv.contentY + " y: " + y + " " + model.text } } Text { text: "Click to move item at index 1 to index 0" anchors.bottom: parent.bottom MouseArea { anchors.fill: parent onClicked: lv.model.move(1, 0, 1 /* n */) } } }
Note that contentY will be increased by the spacing value every time an item is moved to index 0.