|void||moveRequested (int oldIndex, int newIndex)|
Implements a drag handle supposed to be in items in ListViews to reorder items The ListView must visualize a model which supports item reordering, such as ListModel.move() or QAbstractItemModel instances with moveRows() correctly implemented.
In order for ListItemDragHandle to work correctly, the listItem that is being dragged should not directly be the delegate of the ListView, but a child of it.
It is recommended to use DelagateRecycler as base delegate like the following code:
Member Function Documentation
Emitted when the drag operation is complete and the item has been dropped in the new final position.
Emitted when the drag handle wants to move the item in the model The following example does the move in the case a ListModel is used.
oldIndex the index the item is currently at newIndex the index we want to move the item to
The documentation for this class was generated from the following file: