TreeView works incorrectly after calling beginMoveRows and endMoveRows in model. This is blocker for our project.
In the example.txt there is example which helps to reproduce the bug.
Actually when first time we move item it is all right, however if we try to move the item which's been just moved it crashes as styleData.index is wrong.
We had to reset model in order to update indexes. However we changed implementation and if we reset the model right after move it also crashes for some reason.
Related topic https://bugreports.qt.io/browse/QTBUG-56490
I spent some hours to provide the example (treeviewexample.zip).
To start moving the item in TreeView, click on the red Rectange to charge source item and next push red Rectangle on target item. You can see that styleData.index is not updated properly. styleData.index is the only way to access index of item. Using this component is impossible (( Ask if I can help somehow else for soonest fix.